From f18dc23c1d5d3b947d43fe18b53d1a0ced918ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 4 Jul 2008 15:42:48 +0200 Subject: Use the new _x_is_fourcc() funtion to check for FOURCC tags in files. --HG-- extra : transplant_source : %B5%96xd%99U%EC%7Cr%ABB%A8%26l%08%99L3o%F6 --- src/demuxers/demux_vqa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demuxers/demux_vqa.c') diff --git a/src/demuxers/demux_vqa.c b/src/demuxers/demux_vqa.c index ae0fd8231..5fb8273dd 100644 --- a/src/demuxers/demux_vqa.c +++ b/src/demuxers/demux_vqa.c @@ -96,8 +96,8 @@ static int open_vqa_file(demux_vqa_t *this) { return 0; /* check for the VQA signatures */ - if ((_X_BE_32(&scratch[0]) != FORM_TAG) || - (_X_BE_32(&scratch[8]) != WVQA_TAG)) + if (!_x_is_fourcc(&scratch[0], "FORM") || + !_x_is_fourcc(&scratch[8], "WVQA") ) return 0; /* file is qualified; skip to the start of the VQA header */ -- cgit v1.2.3