mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user