changeset 9202:42e9c5b34503 libavcodec

Support "next parameter flags present" flag.
author ramiro
date Fri, 20 Mar 2009 13:04:14 +0000
parents 753780c4875e
children 5074e89eb15f
files mlpdec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mlpdec.c	Fri Mar 20 13:02:15 2009 +0000
+++ b/mlpdec.c	Fri Mar 20 13:04:14 2009 +0000
@@ -76,6 +76,7 @@
 #define PARAM_FIR           (1 << 3)
 #define PARAM_IIR           (1 << 2)
 #define PARAM_HUFFOFFSET    (1 << 1)
+#define PARAM_PRESENCE      (1 << 0)
     //@}
 
     //@{
@@ -501,6 +502,7 @@
     SubStream *s = &m->substream[substr];
     unsigned int mat, ch;
 
+    if (s->param_presence_flags & PARAM_PRESENCE)
     if (get_bits1(gbp))
         s->param_presence_flags = get_bits(gbp, 8);