diff options
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r-- | libavdevice/v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 40eabc4f21..41dc0a12f8 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -508,7 +508,7 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt) if (res < 0) { res = AVERROR(errno); av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF)\n"); - av_free_packet(pkt); + av_packet_unref(pkt); return res; } avpriv_atomic_int_add_and_fetch(&s->buffers_queued, 1); |