Mercurial > libavcodec.hg
changeset 11173:0010335497ad libavcodec
10l use pack16to32(), should fix big endian h264 failures.
author | michael |
---|---|
date | Mon, 15 Feb 2010 01:24:50 +0000 |
parents | 458393d0db0a |
children | 421c6cd2fb9f |
files | h264_direct.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_direct.c Mon Feb 15 01:04:07 2010 +0000 +++ b/h264_direct.c Mon Feb 15 01:24:50 2010 +0000 @@ -178,8 +178,8 @@ int match_count= (left_ref==ref[list]) + (top_ref==ref[list]) + (refc==ref[list]); if(match_count > 1){ //most common - mv[list]= (mid_pred(A[0], B[0], C[0])&0xFFFF) - +(mid_pred(A[1], B[1], C[1])<<16); + mv[list]= pack16to32(mid_pred(A[0], B[0], C[0]), + mid_pred(A[1], B[1], C[1]) ); }else { assert(match_count==1); if(left_ref==ref[list]){