diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-26 20:07:08 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-26 20:07:08 +0000 |
commit | 3f6e3f3dba32a03b84e055fdf36aa10e5e6b4a46 (patch) | |
tree | 016098e882a7a4cb3e447ea87b9a4f09253f4f24 /src/demuxers | |
parent | 04efc58c21ec343998bb65c3a653698e6be901ff (diff) | |
download | xine-lib-3f6e3f3dba32a03b84e055fdf36aa10e5e6b4a46.tar.gz xine-lib-3f6e3f3dba32a03b84e055fdf36aa10e5e6b4a46.tar.bz2 |
fix rv10 playback
CVS patchset: 4948
CVS date: 2003/05/26 20:07:08
Diffstat (limited to 'src/demuxers')
-rw-r--r-- | src/demuxers/demux_real.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 63975822d..4e53eee8c 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -28,7 +28,7 @@ * * Based on FFmpeg's libav/rm.c. * - * $Id: demux_real.c,v 1.54 2003/05/26 12:32:40 jstembridge Exp $ + * $Id: demux_real.c,v 1.55 2003/05/26 20:07:09 jstembridge Exp $ */ #ifdef HAVE_CONFIG_H @@ -607,11 +607,14 @@ static void real_parse_headers (demux_real_t *this) { memcpy(&bih.biWidth, mdpr->type_specific_data+off+8, 2); memcpy(&bih.biHeight, mdpr->type_specific_data+off+10, 2); + memcpy(&bih.biCompression, mdpr->type_specific_data+off+26, 4); bih.biWidth=bswap_16(bih.biWidth); bih.biHeight=bswap_16(bih.biHeight); + bih.biCompression=bswap_32(bih.biCompression); bih.biSize=sizeof(bih); #ifdef LOG printf("demux_real: setting size to w:%u h:%u for RV10\n", bih.biWidth, bih.biHeight); + printf("demux_real: setting sub-codec to %X for RV10\n", bih.biCompression); #endif memcpy(buf->content, &bih, bih.biSize); |