[FFmpeg-devel] [PATCH 1/1] RFC discard all frames when looking for codec parameters

Joakim Plate elupus at ecce.se
Mon Dec 16 01:13:37 CET 2013

Okey. so fate breakage would seem to stem from has_b_frames not being
calculated for h264 when skipping frames. has_b_frames is normally updated
in h264.c:decode_postinit.

Skipping h264.c:4848:
            if (avctx->skip_frame >= AVDISCARD_NONREF &&
                h->nal_ref_idc == 0 &&
                h->nal_unit_type != NAL_SEI)
Resolves that issue and fate passes. From what i can see, the code will
still skip the actual decoding of slices even with above hunk removed. How
big performance hit it would be to remove that in the skip case i'm not

Any thoughts?

More information about the ffmpeg-devel mailing list