summaryrefslogtreecommitdiff
path: root/libavcodec/libutvideodec.cpp
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-10 00:50:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-10 01:11:32 +0100
commit4c1b4ae1baf77df7150fa8cbcece8057a261e47d (patch)
treee1869c24cfafc419db4f6b4d39fb2c0802533a7f /libavcodec/libutvideodec.cpp
parent999ee28124f3b636bfab7cc6cb77b13224e07583 (diff)
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>
Diffstat (limited to 'libavcodec/libutvideodec.cpp')
-rw-r--r--libavcodec/libutvideodec.cpp2
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;
}