diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 00:50:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-07 21:28:41 +0100 |
commit | ed621efb361b83db08a4ea741505660afd60fd30 (patch) | |
tree | 35c05163e908298b03b6e2f2036960087eca919a | |
parent | 9f864bd3247bab3939a317bfbe4444df02349587 (diff) | |
download | ffmpeg-ed621efb361b83db08a4ea741505660afd60fd30.tar.gz |
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 <michaelni@gmx.at>
(cherry picked from commit 4c1b4ae1baf77df7150fa8cbcece8057a261e47d)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libutvideodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 0fae9f78f4..0bf2abe769 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; } |