diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-02 12:10:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-02 12:10:52 +0100 |
commit | 547042a8cd0f425263a4f96603debe8b4fab1b93 (patch) | |
tree | 07ccaad536ba426f0c28ebf5de954ceecb64f433 | |
parent | 2d2e6db7cfe5d50fb428a03f7c6450e7248d0a36 (diff) | |
parent | 437211ae73ef1ed8285b4fed7620502ea4999e11 (diff) | |
download | ffmpeg-547042a8cd0f425263a4f96603debe8b4fab1b93.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
h264: set ref_count to 0 for intra slices.
Conflicts:
libavcodec/h264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index be144f5250..a3d612723e 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3533,8 +3533,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0) h->list_count = 2; else h->list_count = 1; - } else - h->ref_count[1]= h->ref_count[0]= h->list_count= 0; + } else { + h->list_count = 0; + h->ref_count[0] = h->ref_count[1] = 0; + } if (!default_ref_list_done) ff_h264_fill_default_ref_list(h); |