mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ff_h264_direct_ref_list_init: fix B slice check.
Fixes null pointer dereference. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
This commit is contained in:
parent
73ad2c2fa7
commit
ed2d7d5868
@ -134,7 +134,7 @@ void ff_h264_direct_ref_list_init(H264Context * const h){
|
|||||||
h->col_fieldoff = 2 * h->ref_list[1][0].f.reference - 3;
|
h->col_fieldoff = 2 * h->ref_list[1][0].f.reference - 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cur->f.pict_type != AV_PICTURE_TYPE_B || h->direct_spatial_mv_pred)
|
if (h->slice_type_nos != AV_PICTURE_TYPE_B || h->direct_spatial_mv_pred)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(list=0; list<2; list++){
|
for(list=0; list<2; list++){
|
||||||
|
Loading…
Reference in New Issue
Block a user