Re: [FFmpeg-devel] [PATCH v2 1/3] avcodec/avs3_parser: set has_b_frames properly

2022-05-22 Thread zhilizhao(赵志立)
> On May 13, 2022, at 6:12 PM, Zhao Zhili wrote: > > has_b_frames should be output_reorder_delay field in AVS3 sequence > header and larger than 1. The parser implementation doesn't parse > that field. Decoder can set has_b_frames properly, so use FFMAX > here to avoid resetting has_b_frames f

[FFmpeg-devel] [PATCH v2 1/3] avcodec/avs3_parser: set has_b_frames properly

2022-05-13 Thread Zhao Zhili
has_b_frames should be output_reorder_delay field in AVS3 sequence header and larger than 1. The parser implementation doesn't parse that field. Decoder can set has_b_frames properly, so use FFMAX here to avoid resetting has_b_frames from output_reorder_delay to 1. --- libavcodec/avs3_parser.c | 5