Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From c0fc3152f0a6a54f11902501dfb0ca62d9171574 Mon Sep 17 00:00:00 2001
- From: Anton Mitrofanov <BugMaster@narod.ru>
- Date: Sun, 8 May 2016 13:14:43 +0300
- Subject: [PATCH] h264: Fix decoding delay for Intra-only encodes by x264
- ---
- libavcodec/h264_ps.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
- index 99ede76..ff5be79 100644
- --- a/libavcodec/h264_ps.c
- +++ b/libavcodec/h264_ps.c
- @@ -530,7 +530,7 @@ 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) {
- 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) {
- --
- 2.7.4.windows.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement