Revision 855a1ba5 libavcodec/h264_cabac.c

View differences:

libavcodec/h264_cabac.c
912 912
static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd ) {
913 913
    int mvd;
914 914

  
915
    if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+FFMIN(((amvd+28)*17)>>9,2)]))
915
    if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)]))
916 916
        return 0;
917 917

  
918 918
    mvd= 1;

Also available in: Unified diff