[FFmpeg-devel] [libav-devel] [PATCH] rtpenc_mpegts: set rtp_ctx to NULL on avformat_write_header failure
andreas.cadhalpun at googlemail.com
Mon Mar 9 23:14:06 CET 2015
On 09.03.2015 22:08, Martin Storsjö wrote:
> Thanks for the patch, and thanks for finding the issue.
> You're quite correct that the error handling here is broken, but I'm not
> able to reproduce it by trying to mux bmp into this muxer - that
> actually succeeds.
I guess I'm using the wrong command then, because it doesn't work with
avconv -i anything -f rtp_mpegts out
It always fails with:
"Max packet size 0 too low"
> Would you mind sending the patches inline - that would ease review of them.
> Your patch causes avformat_write_trailer to be called, even if
> avformat_write_header failed - that's not the right way to handle it.
Indeed that's wrong.
> I'll send a new version of the patch that handles it correctly.
More information about the ffmpeg-devel