summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-06 04:11:17 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-06 04:11:17 +0000
commitb226c03e23e05a7384548cdfcd5f1eef0c5e1227 (patch)
treeb0ddfdee4fa4685093b29d6cd5d9e5e183587077 /libmpcodecs
parent42c4a5b4196c68abcd441ad6ab2812215749f7a3 (diff)
downloadmpv-b226c03e23e05a7384548cdfcd5f1eef0c5e1227.tar.bz2
mpv-b226c03e23e05a7384548cdfcd5f1eef0c5e1227.tar.xz
fix byteorder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14119 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 69e9315e05..730f3ae8e3 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -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]);