Commit 0333d234 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

h264: do not let invalid values in h->ref_count after a decoder reset.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 253d18b3
...@@ -2634,6 +2634,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ ...@@ -2634,6 +2634,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
free_tables(h, 0); free_tables(h, 0);
flush_dpb(s->avctx); flush_dpb(s->avctx);
MPV_common_end(s); MPV_common_end(s);
h->list_count = 0;
} }
if (!s->context_initialized) { if (!s->context_initialized) {
if (h != h0) { if (h != h0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment