From 07edb89ff5d2484e0549992dc9d3e4ea7727dc89 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 3 Jun 2002 16:20:35 +0000 Subject: provide function to convert endianess of BITMAPINFOHEADER (when reading data from win32/MS format files) CVS patchset: 1998 CVS date: 2002/06/03 16:20:35 --- src/demuxers/demux_avi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/demuxers/demux_avi.c') diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index a217e84f2..68c45da3c 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_avi.c,v 1.91 2002/06/03 13:31:13 miguelfreitas Exp $ + * $Id: demux_avi.c,v 1.92 2002/06/03 16:20:36 miguelfreitas Exp $ * * demultiplexer for avi streams * @@ -729,9 +729,11 @@ static avi_t *AVI_init(demux_avi_t *this) { if(lasttag == 1) { /* printf ("size : %d\n",sizeof(AVI->bih)); */ memcpy (&AVI->bih, hdrl_data+i, sizeof(AVI->bih)); + xine_bmiheader_le2me( &AVI->bih ); + /* stream_read(demuxer->stream,(char*) &avi_header.bih,MIN(size2,sizeof(avi_header.bih))); */ - AVI->width = str2ulong(hdrl_data+i+4); - AVI->height = str2ulong(hdrl_data+i+8); + AVI->width = AVI->bih.biWidth; + AVI->height = AVI->bih.biHeight; /* printf ("size : %d x %d (%d x %d)\n", AVI->width, AVI->height, AVI->bih.biWidth, AVI->bih.biHeight); -- cgit v1.2.3