summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/wrapped_avframe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/wrapped_avframe.c b/libavcodec/wrapped_avframe.c
index 3d2137ccbf..def29a9060 100644
--- a/libavcodec/wrapped_avframe.c
+++ b/libavcodec/wrapped_avframe.c
@@ -92,7 +92,9 @@ static int wrapped_avframe_decode(AVCodecContext *avctx, AVFrame *out,
in = (AVFrame*)pkt->data;
- av_frame_move_ref(out, in);
+ err = av_frame_ref(out, in);
+ if (err < 0)
+ return err;
err = ff_decode_frame_props(avctx, out);
if (err < 0)