[FFmpeg-devel] [RFC]Improve adp detection

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 30 02:14:38 CET 2013


Michael Niedermayer <michaelni <at> gmx.at> writes:

> >      for (i = 0; i < p->buf_size - 3; i+=32)
> >          if (p->buf[i] != p->buf[i+2] || p->buf[i+1] != p->buf[i+3])
> >              return 0;
> 
> can these have any value ?

I wanted to ask the same question - I don't 
understand the code in adpcm.c

> the decoder distinuishes only 4 cases for the 
> upper 4 bits which would have 16 cases

Because of the "default:" case, I thought all 
values are allowed.

Carl Eugen



More information about the ffmpeg-devel mailing list