mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
h264: reset current_slice on context reinit
This fixes a null pointer dereference Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9f39d3d190
commit
8201092241
@ -2975,6 +2975,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
|
||||
flush_dpb(s->avctx);
|
||||
ff_MPV_common_end(s);
|
||||
h->list_count = 0;
|
||||
h->current_slice = 0;
|
||||
}
|
||||
if (!s->context_initialized) {
|
||||
if (h != h0) {
|
||||
|
Loading…
Reference in New Issue
Block a user