Quoting Steven Liu (2021-12-01 09:37:52)
> From: Steven Liu <[email protected]>
> 
> 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
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to