>
> av_write_frame(out_ctx, &packet);
>
> Probably using av_interleave_write_frame might help.
>
> Program keeps segfaulting when i call  av_interleaved_write_frame(), same
as calling av_write_frame() and av_free_packet(),
don't know why it happens.

&frame_finished isn't checked, I guess that might explain that. The
> decoder might not output a frame immediately when handling B frames.
>
> Added check for it, but it doesn't affect program's behavior.

How currently my code looks: http://pastebin.com/AUhPndNB

Thanks in advance.
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to