Commit 87b98689 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: clear the ref lists when the reference are cleared.

Fixes reading of freed arrays (Ticket1498)
Found-by: 's avatarPiotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0c9283a0
......@@ -443,6 +443,9 @@ void ff_h264_remove_all_refs(H264Context *h){
h->short_ref[i]= NULL;
}
h->short_ref_count=0;
memset(h->default_ref_list, 0, sizeof(h->default_ref_list));
memset(h->ref_list, 0, sizeof(h->ref_list));
}
/**
......
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