Advertisement
Guest User

Untitled

a guest
May 8th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.97 KB | None | 0 0
  1. From c0fc3152f0a6a54f11902501dfb0ca62d9171574 Mon Sep 17 00:00:00 2001
  2. From: Anton Mitrofanov <BugMaster@narod.ru>
  3. Date: Sun, 8 May 2016 13:14:43 +0300
  4. Subject: [PATCH] h264: Fix decoding delay for Intra-only encodes by x264
  5.  
  6. ---
  7. libavcodec/h264_ps.c | 2 +-
  8.  1 file changed, 1 insertion(+), 1 deletion(-)
  9.  
  10. diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
  11. index 99ede76..ff5be79 100644
  12. --- a/libavcodec/h264_ps.c
  13. +++ b/libavcodec/h264_ps.c
  14. @@ -530,7 +530,7 @@ int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx,
  15.  
  16.      /* if the maximum delay is not stored in the SPS, derive it based on the
  17.       * level */
  18. -    if (!sps->bitstream_restriction_flag) {
  19. +    if (!sps->bitstream_restriction_flag && sps->ref_frame_count) {
  20.          sps->num_reorder_frames = MAX_DELAYED_PIC_COUNT - 1;
  21.          for (i = 0; i < FF_ARRAY_ELEMS(level_max_dpb_mbs); i++) {
  22.              if (level_max_dpb_mbs[i][0] == sps->level_idc) {
  23. --
  24. 2.7.4.windows.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement