summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 16:26:53 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 16:26:53 +0100
commit2e83cf4e89a170f13965e1fe801761016052fa7d (patch)
treea5fb1aa26c710b361700c3cfe64d9bebb3d19d2d /src
parent9796dacd1194796ba6d112b5b5cb88e4eac8578b (diff)
downloadxine-lib-2e83cf4e89a170f13965e1fe801761016052fa7d.tar.gz
xine-lib-2e83cf4e89a170f13965e1fe801761016052fa7d.tar.bz2
Use FOURCC comparison rather than multiple bytes comparison.
--HG-- extra : transplant_source : D%BF%D7%DA%B0%F7%15%1A%96%2BV%DB%BF%85%05%AF%11%85%9B%1E
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_flv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/demuxers/demux_flv.c b/src/demuxers/demux_flv.c
index 99c861e0d..f0b29532b 100644
--- a/src/demuxers/demux_flv.c
+++ b/src/demuxers/demux_flv.c
@@ -684,8 +684,7 @@ static void seek_flv_file(demux_flv_t *this, off_t seek_pos, int seek_pts) {
return;
}
/* check StreamID and CodecID */
- if (buf[0] == 0 && buf[1] == 0 && buf[2] == 0 &&
- buf[3] == (this->videocodec | 0x10)) {
+ if ( _X_ME_32(buf) == ME_FOURCC(0, 0, 0, (this->videocodec | 0x10)) ) {
this->input->seek(this->input, -16, SEEK_CUR);
lprintf(" ...resynced after %d bytes\n", i);
return;