diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-21 01:49:37 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-26 16:25:07 -0500 |
commit | 27360ccc5edcaa1a37dec39127e87c461ce668b6 (patch) | |
tree | d0dd010e4a00fc34ec3b2aa8cb8c83f85958b246 /libavformat/segafilm.c | |
parent | d8cec2d7fc1c2c5b6f82b8743b3cfd04cd4bb8cc (diff) | |
download | ffmpeg-27360ccc5edcaa1a37dec39127e87c461ce668b6.tar.gz |
adx: add an ADX parser.
This simplifies the decoder so it doesn't have to process an in-packet header
or handle arbitrary-sized packets. It also fixes decoding of files with large
headers.
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r-- | libavformat/segafilm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index b75c8774ce..9bf81d30d4 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -172,6 +172,7 @@ static int film_read_header(AVFormatContext *s, if (film->audio_type == CODEC_ID_ADPCM_ADX) { st->codec->bits_per_coded_sample = 18 * 8 / 32; st->codec->block_align = st->codec->channels * 18; + st->need_parsing = AVSTREAM_PARSE_FULL; } else { st->codec->bits_per_coded_sample = film->audio_bits; st->codec->block_align = st->codec->channels * |