From 475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Nov 2011 14:54:15 +0100 Subject: [PATCH] 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 --- libavcodec/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 1ad87f1b9d..b4c9404e3e 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);