Quoting Steven Liu (2021-12-01 09:37:52)
> From: Steven Liu <liuq...@kuaishou.com>
> 
> ret could be set to s->opaque->buffer in avio_close_dyn_buf, so it can
> be set to NULL, check NULL pointer deference after it should be ok.

I don't understand this reasoning. avio_close_dyn_buf() should produce
a non-NULL output buffer if something was written into it. Since this
branch is only taken when (enc->pix_fmts != NULL), something should
always be written, so the output buffer should be non-NULL and have a
non-zero size.

Under what circumstances will it happen that the output is NULL?

-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to