Commit 475fb67d authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1ed9eb5a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment