[FFmpeg-cvslog] avcodec/libutvideodec: use av_frame_move_ref()
Michael Niedermayer
git at videolan.org
Tue Dec 10 01:18:57 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 10 00:50:09 2013 +0100| [4c1b4ae1baf77df7150fa8cbcece8057a261e47d] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c1b4ae1baf77df7150fa8cbcece8057a261e47d
---
libavcodec/libutvideodec.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp
index 0d8fa1a..8e6b691 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;
}
More information about the ffmpeg-cvslog
mailing list