Commit 1711fe41 authored by banan's avatar banan

Add condition to aea demuxer probe.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19833 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 765753bd
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment