diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-22 02:53:01 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-22 02:53:01 +0000 |
commit | 44dff0058e9e0c8f699a101f56cdec83796d92d5 (patch) | |
tree | d7a7d3ab27e1a1cbfd832aa9761b0c2436758370 | |
parent | 08a5b4e9b5d008ea864c7a194db9a0d94aa4a7c6 (diff) | |
download | ffmpeg-44dff0058e9e0c8f699a101f56cdec83796d92d5.tar.gz |
init ext sample rate to 0 if not present
Originally committed as revision 18139 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpeg4audio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c index ce5c723411..9c7e02b751 100644 --- a/libavcodec/mpeg4audio.c +++ b/libavcodec/mpeg4audio.c @@ -61,9 +61,10 @@ int ff_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int buf_si c->sbr = 1; c->ext_sample_rate = get_sample_rate(&gb, &c->ext_sampling_index); c->object_type = get_object_type(&gb); - } else + } else { c->ext_object_type = 0; - + c->ext_sample_rate = 0; + } specific_config_bitindex = get_bits_count(&gb); if (c->ext_object_type != 5) { |