Commit 3d68f5e0 authored by Michael Niedermayer's avatar Michael Niedermayer

h264_direct: assert the validity of the spatial ref

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 285c5f68
......@@ -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;
......
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