# HG changeset patch # User bcoudurier # Date 1209135967 0 # Node ID 36d091f338ca1c2334a9f66e054644794aa0ca88 # Parent 9e639601ae3d113a9aaf17ce3dd2cd0e5e347df7 fix adpcm ima qt decoding, channel at init is 0, correct stereo out since samples += avctx->channels diff -r 9e639601ae3d -r 36d091f338ca adpcm.c --- a/adpcm.c Fri Apr 25 14:09:42 2008 +0000 +++ b/adpcm.c Fri Apr 25 15:06:07 2008 +0000 @@ -959,9 +959,10 @@ if(st) { /* handle stereo interlacing */ c->channel = (channel + 1) % 2; /* we get one packet for left, then one for right data */ - if(channel == 1) { /* wait for the other packet before outputing anything */ + if(!channel) { /* wait for the other packet before outputing anything */ return src - buf; } + samples--; } break; case CODEC_ID_ADPCM_IMA_WAV: