From ca67baa810346a2f6c0c7b7a9f1a77e99f2b6403 Mon Sep 17 00:00:00 2001 From: Siggi Langauf Date: Thu, 6 Jun 2002 21:16:38 +0000 Subject: fixed fourcc endianness for video fourcc (untested on little endian machines) (audio fourcc totally untested) CVS patchset: 2024 CVS date: 2002/06/06 21:16:38 --- src/demuxers/demux_qt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index d7bfb07b3..acaf32499 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -30,7 +30,7 @@ * build_frame_table * free_qt_info * - * $Id: demux_qt.c,v 1.42 2002/06/06 05:06:30 tmmm Exp $ + * $Id: demux_qt.c,v 1.43 2002/06/06 21:16:38 siggi Exp $ * */ @@ -1246,12 +1246,12 @@ static int demux_qt_start (demux_plugin_t *this_gen, this->bih.biWidth = this->qt->video_width; this->bih.biHeight = this->qt->video_height; - /* fourcc was stored in opposite byte order that mapping routine wants */ - this->bih.biCompression = bswap_32( this->qt->video_codec ); + /* fourcc was stored in big endian, mapping routine wants machine endian */ + this->bih.biCompression = be2me_32( this->qt->video_codec ); this->qt->video_type = fourcc_to_buf_video(&this->bih.biCompression); - /* fourcc was stored in opposite byte order that mapping routine wants */ - le_fourcc = bswap_32( this->qt->audio_codec ); + /* fourcc was stored in big endian, mapping routine wants machine endian */ + le_fourcc = be2me_32( this->qt->audio_codec ); this->qt->audio_type = formattag_to_buf_audio(le_fourcc); /* print vital stats */ -- cgit v1.2.3