[FFmpeg-cvslog] lavc: Init AVFrame->opaque to AVCodecContext. opaque in avcodec_default_get_buffer()
Michael Niedermayer
git at videolan.org
Thu Nov 3 15:10:47 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov 3 14:54:15 2011 +0100| [475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a] | committer: Michael Niedermayer
lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()
this should allow some simplifications in some applications.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a
---
libavcodec/utils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 1ad87f1..b4c9404 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -396,6 +396,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
pic->width = s->width;
pic->height = s->height;
pic->format = s->pix_fmt;
+ pic->opaque = s->opaque;
if(s->debug&FF_DEBUG_BUFFERS)
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
More information about the ffmpeg-cvslog
mailing list