comparison mlpdec.c @ 9202:42e9c5b34503 libavcodec

Support "next parameter flags present" flag.
author ramiro
date Fri, 20 Mar 2009 13:04:14 +0000
parents 753780c4875e
children 5074e89eb15f
comparison
equal deleted inserted replaced
9201:753780c4875e 9202:42e9c5b34503
74 #define PARAM_OUTSHIFT (1 << 5) 74 #define PARAM_OUTSHIFT (1 << 5)
75 #define PARAM_QUANTSTEP (1 << 4) 75 #define PARAM_QUANTSTEP (1 << 4)
76 #define PARAM_FIR (1 << 3) 76 #define PARAM_FIR (1 << 3)
77 #define PARAM_IIR (1 << 2) 77 #define PARAM_IIR (1 << 2)
78 #define PARAM_HUFFOFFSET (1 << 1) 78 #define PARAM_HUFFOFFSET (1 << 1)
79 #define PARAM_PRESENCE (1 << 0)
79 //@} 80 //@}
80 81
81 //@{ 82 //@{
82 /** matrix data */ 83 /** matrix data */
83 84
499 unsigned int substr) 500 unsigned int substr)
500 { 501 {
501 SubStream *s = &m->substream[substr]; 502 SubStream *s = &m->substream[substr];
502 unsigned int mat, ch; 503 unsigned int mat, ch;
503 504
505 if (s->param_presence_flags & PARAM_PRESENCE)
504 if (get_bits1(gbp)) 506 if (get_bits1(gbp))
505 s->param_presence_flags = get_bits(gbp, 8); 507 s->param_presence_flags = get_bits(gbp, 8);
506 508
507 if (s->param_presence_flags & PARAM_BLOCKSIZE) 509 if (s->param_presence_flags & PARAM_BLOCKSIZE)
508 if (get_bits1(gbp)) { 510 if (get_bits1(gbp)) {