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>
This commit is contained in:
@ -396,6 +396,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
|
|||||||
pic->width = s->width;
|
pic->width = s->width;
|
||||||
pic->height = s->height;
|
pic->height = s->height;
|
||||||
pic->format = s->pix_fmt;
|
pic->format = s->pix_fmt;
|
||||||
|
pic->opaque = s->opaque;
|
||||||
|
|
||||||
if(s->debug&FF_DEBUG_BUFFERS)
|
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);
|
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
|
||||||
|
Reference in New Issue
Block a user