2013/9/3 Luca Barbato <[email protected]>:
> On 03/09/13 06:57, Yukinori Yamazoe wrote:
>> +int ff_qsv_postinit(AVCodecContext *avctx, QSVContext *q)
>
> Should be called reinit.
>
I rename to reinit.
>> +{
>> + int ret;
>> + // New video parameter value to AVCodecContext
>> + avctx->width = q->param.mfx.FrameInfo.CropW;
>> + avctx->height = q->param.mfx.FrameInfo.CropH;
>> + avctx->coded_width = q->param.mfx.FrameInfo.Width;
>> + avctx->coded_height = q->param.mfx.FrameInfo.Height;
>> + avctx->time_base.den = q->param.mfx.FrameInfo.FrameRateExtN *
>> avctx->ticks_per_frame;
>> + avctx->time_base.num = q->param.mfx.FrameInfo.FrameRateExtD;
>> +
>> + MFXClose(q->session);
>> +
>> + free_surface_list(q);
>
> By doing this we wipe the pending frames, we can do better, but
> obviously you are going in the right direction.
Pending frames on surfaces has been already output.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel