Electronic Arts demuxer: ignore PTxx platform ID values.
authorPeter Ross <pross@xvid.org>
Tue, 12 Aug 2008 08:33:32 +0000 (08:33 +0000)
committerPeter Ross <pross@xvid.org>
Tue, 12 Aug 2008 08:33:32 +0000 (08:33 +0000)
Originally committed as revision 14709 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 3ac0f4f1bff57bcbed1de9e5fdb818c2d725cd9f..5e5d84e98fc6eb6e2673c7f7464ce4144b59cd48 100644 (file)
@@ -306,7 +306,7 @@ static int process_ea_header(AVFormatContext *s) {
                 blockid = get_le32(pb);
                 if (blockid == GSTR_TAG) {
                     url_fskip(pb, 4);
-                } else if (blockid != PT00_TAG) {
+                } else if ((blockid & 0xFFFF)!=PT00_TAG) {
                     av_log (s, AV_LOG_ERROR, "unknown SCHl headerid\n");
                     return 0;
                 }