summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-11 14:12:00 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-15 19:08:43 +0200
commitd31a3af6a994c4afaa39d6f781ddbdd519d417f8 (patch)
tree513324e25a75205d4dcdf270fb6bd718cd75f665 /libavcodec
parent104abea6469dd290c77b9d3916d3dadac52d4f04 (diff)
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@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wrapped_avframe.c6
1 files changed, 0 insertions, 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;
}