changeset 9226:13c86fee4873 libavcodec

init ext sample rate to 0 if not present
author bcoudurier
date Sun, 22 Mar 2009 02:53:01 +0000
parents 85c7a028316d
children 98f102ead3c6
files mpeg4audio.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg4audio.c	Sun Mar 22 01:32:27 2009 +0000
+++ b/mpeg4audio.c	Sun Mar 22 02:53:01 2009 +0000
@@ -61,9 +61,10 @@
         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) {