[FFmpeg-cvslog] avcodec/wrapped_avframe: Don't attach FrameDecodeData unnecessarily

Andreas Rheinhardt git at videolan.org
Sun May 15 20:27:06 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed May 11 14:12:00 2022 +0200| [d31a3af6a994c4afaa39d6f781ddbdd519d417f8] | committer: Andreas Rheinhardt

avcodec/wrapped_avframe: Don't attach FrameDecodeData unnecessarily

It is unneeded, as this decoder does not call ff_get_buffer().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/wrapped_avframe.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavcodec/wrapped_avframe.c b/libavcodec/wrapped_avframe.c
index 3af007d478..06c274eed0 100644
--- a/libavcodec/wrapped_avframe.c
+++ b/libavcodec/wrapped_avframe.c
@@ -98,12 +98,6 @@ static int wrapped_avframe_decode(AVCodecContext *avctx, AVFrame *out,
 
     av_frame_move_ref(out, in);
 
-    err = ff_attach_decode_data(out);
-    if (err < 0) {
-        av_frame_unref(out);
-        return err;
-    }
-
     *got_frame = 1;
     return 0;
 }



More information about the ffmpeg-cvslog mailing list