Mercurial > mplayer.hg
changeset 16859:d3b47567e629
big-endian fixes for "extended" (i.e. mythtv) files.
author | reimar |
---|---|
date | Tue, 25 Oct 2005 20:01:09 +0000 |
parents | daf4e680d116 |
children | a68ede010f66 |
files | libmpdemux/demux_nuv.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_nuv.c Tue Oct 25 19:29:51 2005 +0000 +++ b/libmpdemux/demux_nuv.c Tue Oct 25 20:01:09 2005 +0000 @@ -237,6 +237,7 @@ if (stream_read(demuxer->stream, (char*)&rtjpeg_frameheader, sizeof(rtjpeg_frameheader)) < sizeof(rtjpeg_frameheader)) goto out; + le2me_rtframeheader(&rtjpeg_frameheader); if (rtjpeg_frameheader.frametype != 'X') stream_skip(demuxer->stream, rtjpeg_frameheader.packetlength); @@ -250,10 +251,10 @@ "NUV extended frame does not have expected length, ignoring\n"); goto out; } - le2me_extendeddata(&ext); if (stream_read(demuxer->stream, (char*)&ext, sizeof(ext)) < sizeof(ext)) goto out; + le2me_extendeddata(&ext); if (ext.version != 1) { mp_msg(MSGT_DEMUXER, MSGL_WARN,