[Libav-user] Some buffers are still owned by the caller on close

wolverin wolverin82 at mail.ru
Mon Nov 7 13:17:44 EET 2022


 
If a function
>avformat_find_stream_info(pFmtCtxInp, NULL)
 
is called for a variable
>AVFormatContext * pFmtCtxInp = avformat_alloc_context()
 
then I get an error when releasing it
>avformat_close_input(&pFmtCtxInp)
 
[video4linux2,v4l2 @ 0x14e17b0] Some buffers are still owned by the caller on close.
ioctl(VIDIOC_QBUF): Bad file descriptor
 
But if I read the package from the pointer pFmtCtxInp, there is no error.
How to release correctly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20221107/58ed8570/attachment.htm>


More information about the Libav-user mailing list