h264: derive the delay from the level when it's not present
authorAnton Khirnov <anton@khirnov.net>
Tue, 20 Oct 2015 17:04:57 +0000 (19:04 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 6 Dec 2015 08:43:52 +0000 (09:43 +0100)
commitb09ad37c83841c399abb7f2503a2ab214d0c2d48
tree8c174f11e24e1cf75faf5c3fa044c70e4c84266f
parent792b9c9dfcf44b657d7854368d975b5ca3bc22ca
h264: derive the delay from the level when it's not present

Fall back to maximum DPB size if the level is unknown.

This should be more spec-compliant and does not depend on the caller
setting has_b_frames before opening the decoder.

The old behaviour, when the delay is supplied by the caller setting
has_b_frames, can still be obtained by setting strict_std_compliance
below normal.
libavcodec/h264.c
libavcodec/h264_ps.c