[FFmpeg-devel] [PATCH 1/2] avcodec: add av1 hardware acceleration decoder

James Almer jamrial at gmail.com
Sat Aug 22 00:58:38 EEST 2020


On 8/21/2020 11:42 AM, James Almer wrote:
>> +static int set_output_frame(AVFrame *srcframe, AVFrame *frame, AVPacket *pkt)
>> +{
>> +    int ret = 0;
>> +    if ((ret = av_frame_ref(frame, srcframe)) < 0) {
>> +        return ret;
>> +    }
>> +
>> +    frame->pts = pkt->pts;
>> +    frame->pkt_dts = pkt->dts;
> Did you add this because you saw bogus timestamps filled by
> ff_thread_get_buffer? If so, could you try applying
> https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=2057 and
> removing this chunk, to see if it fixes it?

Actually no, it wont help. The decoder as is lacks the DELAY flag, so
it's a 1:1 decoder. Guess this is correct.

If you set frame->pkt_dts however, you need to signal it with the
FF_CODEC_CAP_SETS_PKT_DTS AVCodec.caps_internal flag.


More information about the ffmpeg-devel mailing list