# HG changeset patch # User michael # Date 1102306277 0 # Node ID a7a4c4af4d839063a033cdddbc953882d7ebc421 # Parent 5d2e0dc2a06a958b2f6dc7c776f3c29c08f21be0 fix byteorder diff -r 5d2e0dc2a06a -r a7a4c4af4d83 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Mon Dec 06 00:41:56 2004 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Mon Dec 06 04:11:17 2004 +0000 @@ -303,9 +303,9 @@ } else { /* has extra slice header (demux_rm or rm->avi streamcopy) */ unsigned int* extrahdr=(unsigned int*)(sh->bih+1); - ((uint32_t*)avctx->extradata)[0] = extrahdr[0]; - avctx->sub_id= - ((uint32_t*)avctx->extradata)[1] = extrahdr[1]; + ((uint32_t*)avctx->extradata)[0] = be2me_32(extrahdr[0]); + avctx->sub_id= extrahdr[1]; + ((uint32_t*)avctx->extradata)[1] = be2me_32(extrahdr[1]); } // printf("%X %X %d %d\n", extrahdr[0], extrahdr[1]);