Commit 17f0a827 authored by michael's avatar michael

10l use pack16to32(), should fix big endian h264 failures.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 43683070
...@@ -178,8 +178,8 @@ static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){ ...@@ -178,8 +178,8 @@ static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){
int match_count= (left_ref==ref[list]) + (top_ref==ref[list]) + (refc==ref[list]); int match_count= (left_ref==ref[list]) + (top_ref==ref[list]) + (refc==ref[list]);
if(match_count > 1){ //most common if(match_count > 1){ //most common
mv[list]= (mid_pred(A[0], B[0], C[0])&0xFFFF) mv[list]= pack16to32(mid_pred(A[0], B[0], C[0]),
+(mid_pred(A[1], B[1], C[1])<<16); mid_pred(A[1], B[1], C[1]) );
}else { }else {
assert(match_count==1); assert(match_count==1);
if(left_ref==ref[list]){ if(left_ref==ref[list]){
......
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