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:
parent
1ed9eb5a59
commit
475fb67d0b
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue