[FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

Nicolas George george at nsup.org
Mon Mar 1 16:24:13 EET 2021


Guo, Yejun (12021-03-01):
> Thanks for the review, as we talked at http://ffmpeg.org/pipermail/ffmpeg-devel/2021-February/276728.html,
> private_ref is allocated in filter vf_dnn_detect.c for detected results, and other
> filters such as vf_drawbox/text (in plan) will read it.
> 
> Since private_ref is for a single libav* library, it has to be NULL when it leaves libavfilter,
> so I have to unref it at the last step of libavfilter, that's in buffersink. Any other suggestion? thanks.

Sorry, I did not have this reply in my archives, I somehow missed it.

What this is basically saying is that private_ref in libavfilter will be
appropriated for the only use of bounding boxes. I think it is a
significantly worse solution than using side data as you originally
considered.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210301/54b8c4a6/attachment.sig>


More information about the ffmpeg-devel mailing list