Revision cbfcde9f

View differences:

libavcodec/h264_direct.c
178 178

  
179 179
            int match_count= (left_ref==ref[list]) + (top_ref==ref[list]) + (refc==ref[list]);
180 180
            if(match_count > 1){ //most common
181
                mv[list]= (mid_pred(A[0], B[0], C[0])&0xFFFF)
182
                         +(mid_pred(A[1], B[1], C[1])<<16);
181
                mv[list]= pack16to32(mid_pred(A[0], B[0], C[0]),
182
                                     mid_pred(A[1], B[1], C[1]) );
183 183
            }else {
184 184
                assert(match_count==1);
185 185
                if(left_ref==ref[list]){

Also available in: Unified diff