1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

fix byteorder

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14119 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2004-12-06 04:11:17 +00:00
parent 42c4a5b419
commit b226c03e23

View File

@ -303,9 +303,9 @@ static int init(sh_video_t *sh){
} 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]);