[FFmpeg-devel] [PATCH] avformat/concatdec: do not close previous input if failed to open next

Nicolas George george at nsup.org
Thu Jan 29 09:41:28 CET 2015


Le decadi 10 pluviôse, an CCXXIII, Zhang Rui a écrit :
> Avoid NULL access in next call of concat_read_packet().

Can you explain how to trigger it?

Another solution is to add:

    if (!cat->avf)
	return AVERROR(EIO);

at the beginning of concat_read_packet(). I have a feeling that this would
be cleaner, but ultimately it depends on the use case.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150129/3861462c/attachment.asc>


More information about the ffmpeg-devel mailing list