Mercurial > libavcodec.hg
changeset 7473:e2f3016867a0 libavcodec
Read bitstream parameters for E-AC-3 streams before returning an error.
author | jbr |
---|---|
date | Sun, 03 Aug 2008 22:29:06 +0000 |
parents | 83c16f531a90 |
children | 9ed1ef44127b |
files | ac3dec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Sun Aug 03 21:42:43 2008 +0000 +++ b/ac3dec.c Sun Aug 03 22:29:06 2008 +0000 @@ -283,9 +283,6 @@ if(err) return err; - if(hdr.bitstream_id > 10) - return AC3_PARSE_ERROR_BSID; - /* get decoding parameters from header info */ s->bit_alloc_params.sr_code = hdr.sr_code; s->channel_mode = hdr.channel_mode; @@ -310,6 +307,9 @@ s->channel_in_cpl[s->lfe_ch] = 0; } + if(hdr.bitstream_id > 10) + return AC3_PARSE_ERROR_BSID; + return ac3_parse_header(s); }