mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
10l use pack16to32(), should fix big endian h264 failures.
Originally committed as revision 21829 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
64dd1b0a1d
commit
cbfcde9f52
@ -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]){
|
||||||
|
Loading…
Reference in New Issue
Block a user