mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264_direct: assert the validity of the spatial ref
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
285c5f6838
commit
3d68f5e032
@ -209,6 +209,7 @@ static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){
|
||||
mv[list]= AV_RN32A(C);
|
||||
}
|
||||
}
|
||||
av_assert2(ref[list] < (h->ref_count[list] << !!FRAME_MBAFF(h)));
|
||||
}else{
|
||||
int mask= ~(MB_TYPE_L0 << (2*list));
|
||||
mv[list] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user