[FFmpeg-devel] [PATCH] avcodec/h264_metadata: add change pic_order_cnt_type option

sharpbai at gmail.com sharpbai at gmail.com
Wed Mar 24 08:15:22 EET 2021


To Andreas Rheinhardt,

> Why is this not possible? I just told you how you could set
> max_dec_frame_buffering to a lower value. It seems you haven't tried it.

Ahh...I thought what you care about is the unsafety of directly modifing
num_reorder_frames and num_reorder_frames to a lower value.

We have tested set max_dec_frame_buffering to 0 and num_reorder_frames to 0.
The result is the same as set pic_order_cnt_type to 2.

Setting max_dec_frame_buffering requires to modify sps only while setting
pic_order_cnt_type requires to modify every slice. I think your method
is better.

Btw, for safety you could compare pic_order_cnt_lsb and frame_num in every
slice header. The difference should not be larger than (num_reorder_frames * 2).
Or an error should be generated.

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list