Browse Source

h264: set ref_count to 0 for intra slices.

CC:libav-stable@libav.org
tags/n1.2
Anton Khirnov 12 years ago
parent
commit
437211ae73
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavcodec/h264.c

+ 4
- 1
libavcodec/h264.c View File

@@ -3384,8 +3384,11 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
h->list_count = 2; h->list_count = 2;
else else
h->list_count = 1; h->list_count = 1;
} else
} else {
h->list_count = 0; h->list_count = 0;
h->ref_count[0] = h->ref_count[1] = 0;
}



max_refs = h->picture_structure == PICT_FRAME ? 16 : 32; max_refs = h->picture_structure == PICT_FRAME ? 16 : 32;




Loading…
Cancel
Save