diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-24 14:44:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-12-21 23:29:02 +0100 |
commit | 45b4781e9a19cb4c9b2bf6e7018087698067fb74 (patch) | |
tree | 955beddb2406fff71c7a9fbdc04d5c7799df9a97 | |
parent | 05bfc03752d15382068f4b7506be89602f91aeb0 (diff) | |
download | ffmpeg-45b4781e9a19cb4c9b2bf6e7018087698067fb74.tar.gz |
avcodec/v4l2_m2m: Remove redundant av_frame_unref()
This frame will be freed in the next line.
Reviewed-by: Zhao Zhili <quinkblack@foxmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/v4l2_m2m.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c index 602efb7a16..bac3eb0588 100644 --- a/libavcodec/v4l2_m2m.c +++ b/libavcodec/v4l2_m2m.c @@ -255,7 +255,6 @@ static void v4l2_m2m_destroy_context(void *opaque, uint8_t *context) if (s->fd >= 0) close(s->fd); - av_frame_unref(s->frame); av_frame_free(&s->frame); av_packet_unref(&s->buf_pkt); |