diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 00:50:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 01:11:32 +0100 |
commit | 4c1b4ae1baf77df7150fa8cbcece8057a261e47d (patch) | |
tree | e1869c24cfafc419db4f6b4d39fb2c0802533a7f | |
parent | 999ee28124f3b636bfab7cc6cb77b13224e07583 (diff) | |
download | ffmpeg-4c1b4ae1baf77df7150fa8cbcece8057a261e47d.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>
-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 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; } |