I found that the warning occurs here v4l2.c
But what can I do to prevent the function avformat_find_stream_info from 
calling this message?
 
static int v4l2_read_close(AVFormatContext *ctx)
{
    struct video_data *s = ctx->priv_data;
 
    if (atomic_load(&s->buffers_queued) != s->buffers)
        av_log(ctx, AV_LOG_WARNING, "Some buffers are still owned by the caller 
on "
               "close.\n");
 
    mmap_close(s);
 
    v4l2_close(s->fd);
    return 0;
}
>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?
>_______________________________________________
>Libav-user mailing list
>[email protected]
>https://ffmpeg.org/mailman/listinfo/libav-user
>
>To unsubscribe, visit link above, or email
>[email protected] with subject "unsubscribe". 
 
 
--
С уважением,  Александр А
 
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

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

Reply via email to