This fixes parsing of live captures with 'open GOP' when poc_type=0. At init, prev_poc_lsb is set to zero by defaut whereas it is undefined. If the stream starts with a high poc_lsb (ie. > max_poc_lsb/2), then the poc_msb is wrongly incremented.
I have uploaded a sample where log2_max_pic_order_cnt_lsb_minus4=5 ie. 512 frames (@25fps), thus there is about 10 seconds of video that are 'lost'. https://framadrop.org/r/a5RSjBKXAS#yBbeVfBR4LQwK4x3seqg4uGRdPv8FLJ6YNv8dVpjGJ4= NB: FATE pass without modification Thank you for the review, Nicolas Nicolas Gaullier (1): avcodec/h264: Fix poc_lsb in open gop context libavcodec/h264_parse.c | 2 ++ libavcodec/h264dec.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.14.1.windows.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".