# HG changeset patch # User banan # Date 1252866473 0 # Node ID 948db02fab5514cafb34b1b78db3982187dbe7b4 # Parent 06b0c8fd923f03edbbb8d8fb3ca9e9b998fb868e Add condition to aea demuxer probe. diff -r 06b0c8fd923f -r 948db02fab55 aea.c --- a/aea.c Sun Sep 13 11:08:59 2009 +0000 +++ b/aea.c Sun Sep 13 18:27:53 2009 +0000 @@ -37,12 +37,15 @@ /* 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