summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-07-09 14:06:11 +0200
committerClément Bœsch <u@pkh.me>2016-07-09 14:06:11 +0200
commitb4abf0e396d8978439c0676f62780abe5a5e64dc (patch)
tree617c02d695adc4cb869f418ebeba9f46a87125df /libavcodec/h264_ps.c
parent775389fc59bc46ac00babc1baf35e273e65f8541 (diff)
parenta833ff68f6bf9dc72c3ef0ddf830ebed743c0703 (diff)
downloadffmpeg-streaming-b4abf0e396d8978439c0676f62780abe5a5e64dc.zip
ffmpeg-streaming-b4abf0e396d8978439c0676f62780abe5a5e64dc.tar.gz
Merge commit 'a833ff68f6bf9dc72c3ef0ddf830ebed743c0703'
* commit 'a833ff68f6bf9dc72c3ef0ddf830ebed743c0703': h264: Fix decoding delay for Intra only streams Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r--libavcodec/h264_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 1e1e793..3bcc6e1 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -560,7 +560,8 @@ int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx,
/* if the maximum delay is not stored in the SPS, derive it based on the
* level */
- if (!sps->bitstream_restriction_flag) {
+ if (!sps->bitstream_restriction_flag &&
+ (sps->ref_frame_count || avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT)) {
sps->num_reorder_frames = MAX_DELAYED_PIC_COUNT - 1;
for (i = 0; i < FF_ARRAY_ELEMS(level_max_dpb_mbs); i++) {
if (level_max_dpb_mbs[i][0] == sps->level_idc) {
OpenPOWER on IntegriCloud