You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/hevc_ps: More complete window reset
Fixes out of array read Fixes: signal_sigsegv_35bcf26_471_cov_2806540268_CAINIT_A_SHARP_4.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1025,10 +1025,8 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
|
|||||||
}
|
}
|
||||||
av_log(s->avctx, AV_LOG_WARNING,
|
av_log(s->avctx, AV_LOG_WARNING,
|
||||||
"Displaying the whole video surface.\n");
|
"Displaying the whole video surface.\n");
|
||||||
sps->pic_conf_win.left_offset =
|
memset(&sps->pic_conf_win, 0, sizeof(sps->pic_conf_win));
|
||||||
sps->pic_conf_win.right_offset =
|
memset(&sps->output_window, 0, sizeof(sps->output_window));
|
||||||
sps->pic_conf_win.top_offset =
|
|
||||||
sps->pic_conf_win.bottom_offset = 0;
|
|
||||||
sps->output_width = sps->width;
|
sps->output_width = sps->width;
|
||||||
sps->output_height = sps->height;
|
sps->output_height = sps->height;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user