<HTML><BODY><div> </div><div>If a function</div><div><div>>avformat_find_stream_info(pFmtCtxInp, NULL)</div><div> </div><div>is called for a variable</div></div><div>>AVFormatContext * pFmtCtxInp = avformat_alloc_context()</div><div> </div><div>then I get an error when releasing it</div><div>>avformat_close_input(&pFmtCtxInp)</div><div> </div><div><div><div>[video4linux2,v4l2 @ 0x14e17b0] Some buffers are still owned by the caller on close.</div><div>ioctl(VIDIOC_QBUF): Bad file descriptor</div><div> </div><div>But if I read the package from the pointer pFmtCtxInp, there is no error.</div><div>How to release correctly?</div></div></div></BODY></HTML>