mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01:00
big-endian fixes for "extended" (i.e. mythtv) files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16860 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
56527d29bc
commit
59eed1b45d
@ -237,6 +237,7 @@ static int demux_xscan_nuv(demuxer_t* demuxer, int width, int height) {
|
||||
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 @@ static int demux_xscan_nuv(demuxer_t* demuxer, int width, int height) {
|
||||
"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,
|
||||
|
Loading…
Reference in New Issue
Block a user