diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-02 00:45:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-02 05:44:35 +0200 |
commit | 3e0dbb8a7ed118308cdddac803063b2cd09de37b (patch) | |
tree | ac20750d2f6abf251765a6de6bd1111045742183 | |
parent | 2cd7580ab51b6173f516d9658949ae3da8601039 (diff) | |
download | ffmpeg-3e0dbb8a7ed118308cdddac803063b2cd09de37b.tar.gz |
h264: set unused ref_counts to 0 as a precautionary meassure.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3af2de76ac8b7aa762e4ee129ec29140e6247d81)
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 9c7bf24b5f..a889f422e1 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2901,7 +2901,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ else h->list_count= 1; }else - h->list_count= 0; + h->ref_count[1]= h->ref_count[0]= h->list_count= 0; if(!default_ref_list_done){ ff_h264_fill_default_ref_list(h); |