[FFmpeg-devel] [PATCH v2 1/2] avcodec/decode: use a single list bsf for codec decode bsfs

Marton Balint cus at passwd.hu
Fri May 1 18:41:22 EEST 2020



On Tue, 28 Apr 2020, Marton Balint wrote:

>
>
> On Sun, 26 Apr 2020, James Almer wrote:
>
>> On 4/26/2020 5:34 AM, Marton Balint wrote:
>>>  void avcodec_flush_buffers(AVCodecContext *avctx)
>>>  {
>>>      AVCodecInternal *avci = avctx->internal;
>>> @@ -2117,7 +2001,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
>>>      avctx->pts_correction_last_pts =
>>>      avctx->pts_correction_last_dts = INT64_MIN;
>>> 
>>> -    bsfs_flush(avctx);
>>> +    av_bsf_flush(avci->filter.bsf);
>>
>> This function can be called with encoders as well, and after this change
>> you'll be calling av_bsf_flush() with NULL as argument.
>>
>> Easiest solution is to add an av_codec_is_decoder(avctx->codec) check
>> before calling it, i guess.
>
> Ok, changed locally.

Will apply the series soon, I will probably squash the two patch, since 
nobody was against removing DecodeFilterContext.

Regards,
Marton


More information about the ffmpeg-devel mailing list