diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-13 18:27:53 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-13 18:27:53 +0000 |
commit | 000b8b8699e58fd07d80a77b7866c20c3b4e41d8 (patch) | |
tree | e846d3af36df6630f89a5e6655c669863aec88b2 /libavformat/aea.c | |
parent | 04a6d1b0dbfc58b05b64c2caeced6b3b1338865c (diff) | |
download | ffmpeg-000b8b8699e58fd07d80a77b7866c20c3b4e41d8.tar.gz |
Add condition to aea demuxer probe.
Originally committed as revision 19833 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aea.c')
-rw-r--r-- | libavformat/aea.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/aea.c b/libavformat/aea.c index d2c1a1d238..7c44d78663 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@ -37,12 +37,15 @@ static int aea_read_probe(AVProbeData *p) /* Magic is '00 08 00 00' in Little Endian*/ if (AV_RL32(p->buf)==0x800) { - int bsm_s, bsm_e, inb_s, inb_e; + int bsm_s, bsm_e, inb_s, inb_e, ch; + ch = p->buf[264]; bsm_s = p->buf[2048]; inb_s = p->buf[2048+1]; inb_e = p->buf[2048+210]; bsm_e = p->buf[2048+211]; + if (ch != 1 && ch != 2) + return 0; /* Check so that the redundant bsm bytes and info bytes are valid * the block size mode bytes have to be the same |