From 4c1b4ae1baf77df7150fa8cbcece8057a261e47d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 10 Dec 2013 00:50:09 +0100 Subject: [PATCH] avcodec/libutvideodec: use av_frame_move_ref() AVFrames cannot be copied literally, their definition is in avutil and their extended_data can point to their data[] Signed-off-by: Michael Niedermayer --- libavcodec/libutvideodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 0d8fa1a7f6..8e6b69175d 100644 --- a/libavcodec/libutvideodec.cpp +++ b/libavcodec/libutvideodec.cpp @@ -164,7 +164,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data, } *got_frame = 1; - *(AVFrame *)data = *pic; + av_frame_move_ref((AVFrame*)data, pic); return avpkt->size; } -- 2.11.0