Peeyush Mishra wrote:
> Thanks A lot for your reply, actually I took reference from
> output_example.c,
No, you did not. output_example.c initialises the coded (and
writes the file header) only one time, before starting to
encode/write frames. Your code initialises the coded every time
you write a frame... This is why the resulting file is broken.
Have a better look at output_example.c
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user