h264_direct: assert the validity of the spatial ref

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/13/merge
Michael Niedermayer 12 years ago
parent 285c5f6838
commit 3d68f5e032
  1. 1
      libavcodec/h264_direct.c

@ -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…
Cancel
Save