mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
* minor optimalization
Originally committed as revision 1618 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b0368839ac
commit
6b9b85c165
@ -427,18 +427,19 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
|
||||
src++; /* if != 0 -> out-of-sync */
|
||||
}
|
||||
|
||||
for(m=3; src < (buf + buf_size);) {
|
||||
*samples++ = adpcm_ima_expand_nibble(&c->status[0], src[0] & 0x0F);
|
||||
for(m=4; src < (buf + buf_size);) {
|
||||
*samples++ = adpcm_ima_expand_nibble(&c->status[0], src[0] & 0x0F);
|
||||
if (st)
|
||||
*samples++ = adpcm_ima_expand_nibble(&c->status[1], src[4] & 0x0F);
|
||||
*samples++ = adpcm_ima_expand_nibble(&c->status[0], (src[0] >> 4) & 0x0F);
|
||||
if (st)
|
||||
if (st) {
|
||||
*samples++ = adpcm_ima_expand_nibble(&c->status[1], (src[4] >> 4) & 0x0F);
|
||||
src++;
|
||||
if (st && !m--) {
|
||||
m=3;
|
||||
src+=4;
|
||||
}
|
||||
if (!--m) {
|
||||
m=4;
|
||||
src+=4;
|
||||
}
|
||||
}
|
||||
src++;
|
||||
}
|
||||
break;
|
||||
case CODEC_ID_ADPCM_MS:
|
||||
|
Loading…
Reference in New Issue
Block a user