mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
104abea646
commit
d31a3af6a9
|
@ -98,12 +98,6 @@ static int wrapped_avframe_decode(AVCodecContext *avctx, AVFrame *out,
|
||||||
|
|
||||||
av_frame_move_ref(out, in);
|
av_frame_move_ref(out, in);
|
||||||
|
|
||||||
err = ff_attach_decode_data(out);
|
|
||||||
if (err < 0) {
|
|
||||||
av_frame_unref(out);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue