diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-03 14:54:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-03 14:54:15 +0100 |
commit | 475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a (patch) | |
tree | e3b0ae4983b91db4e9dee881d32790eed95e8712 | |
parent | 1ed9eb5a595a46ae6b523bc34a3ed4667a44c6f1 (diff) | |
download | ffmpeg-475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a.tar.gz |
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@gmx.at>
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |