[FFmpeg-cvslog] avcodec/v4l2_m2m: Remove redundant av_frame_unref()

Andreas Rheinhardt git at videolan.org
Fri Dec 22 00:38:39 EET 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Sep 24 14:44:37 2023 +0200| [45b4781e9a19cb4c9b2bf6e7018087698067fb74] | committer: Andreas Rheinhardt

avcodec/v4l2_m2m: Remove redundant av_frame_unref()

This frame will be freed in the next line.

Reviewed-by: Zhao Zhili <quinkblack at foxmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45b4781e9a19cb4c9b2bf6e7018087698067fb74
---

 libavcodec/v4l2_m2m.c | 1 -
 1 file changed, 1 deletion(-)

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);
 



More information about the ffmpeg-cvslog mailing list