Mercurial > mplayer.hg
changeset 14118:a7a4c4af4d83
fix byteorder
author | michael |
---|---|
date | Mon, 06 Dec 2004 04:11:17 +0000 |
parents | 5d2e0dc2a06a |
children | c246ea51bd53 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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]);