h264: set ref_count to 0 for intra slices.

CC:libav-stable@libav.org
This commit is contained in:
Anton Khirnov 2013-02-14 11:44:33 +01:00
parent 668e16a0dd
commit 437211ae73
1 changed files with 4 additions and 1 deletions

View File

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