[FFmpeg-cvslog] r12965 - in trunk: libavcodec/adpcm.c tests/ffmpeg.regression.ref tests/rotozoom.regression.ref

bcoudurier subversion
Fri Apr 25 17:06:07 CEST 2008


Author: bcoudurier
Date: Fri Apr 25 17:06:07 2008
New Revision: 12965

Log:
fix adpcm ima qt decoding, channel at init is 0, correct stereo out since samples += avctx->channels

Modified:
   trunk/libavcodec/adpcm.c
   trunk/tests/ffmpeg.regression.ref
   trunk/tests/rotozoom.regression.ref

Modified: trunk/libavcodec/adpcm.c
==============================================================================
--- trunk/libavcodec/adpcm.c	(original)
+++ trunk/libavcodec/adpcm.c	Fri Apr 25 17:06:07 2008
@@ -959,9 +959,10 @@ static int adpcm_decode_frame(AVCodecCon
 
         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:

Modified: trunk/tests/ffmpeg.regression.ref
==============================================================================
--- trunk/tests/ffmpeg.regression.ref	(original)
+++ trunk/tests/ffmpeg.regression.ref	Fri Apr 25 17:06:07 2008
@@ -179,8 +179,8 @@ stddev:8368.02 PSNR:17.87 bytes:96256
 stddev:904.20 PSNR:37.19 bytes:1056768
 efdae2746040dbc27be402b149556f1e *./tests/data/a-adpcm_qt.aiff
 281184 ./tests/data/a-adpcm_qt.aiff
-468fcd54a438f1b74060c2e9665be59e *./tests/data/adpcm_ima_qt.vsynth.out.wav
-stddev:8931.22 PSNR:17.30 bytes:1056768
+5a2084ad27674d5cf3bc2945061e7910 *./tests/data/adpcm_ima_qt.vsynth.out.wav
+stddev:915.35 PSNR:37.09 bytes:1056768
 628d4789cf9ee16a756ac54b7fd8650d *./tests/data/a-adpcm_ms.wav
 267320 ./tests/data/a-adpcm_ms.wav
 91a84bb4f319a3a0bf0c0441b3d3a529 *./tests/data/adpcm_ms.vsynth.out.wav

Modified: trunk/tests/rotozoom.regression.ref
==============================================================================
--- trunk/tests/rotozoom.regression.ref	(original)
+++ trunk/tests/rotozoom.regression.ref	Fri Apr 25 17:06:07 2008
@@ -179,8 +179,8 @@ stddev:8368.02 PSNR:17.87 bytes:96256
 stddev:904.20 PSNR:37.19 bytes:1056768
 efdae2746040dbc27be402b149556f1e *./tests/data/a-adpcm_qt.aiff
 281184 ./tests/data/a-adpcm_qt.aiff
-468fcd54a438f1b74060c2e9665be59e *./tests/data/adpcm_ima_qt.rotozoom.out.wav
-stddev:8931.22 PSNR:17.30 bytes:1056768
+5a2084ad27674d5cf3bc2945061e7910 *./tests/data/adpcm_ima_qt.rotozoom.out.wav
+stddev:915.35 PSNR:37.09 bytes:1056768
 628d4789cf9ee16a756ac54b7fd8650d *./tests/data/a-adpcm_ms.wav
 267320 ./tests/data/a-adpcm_ms.wav
 91a84bb4f319a3a0bf0c0441b3d3a529 *./tests/data/adpcm_ms.rotozoom.out.wav
@@ -197,7 +197,7 @@ c3382f03ce2efb5d475240d288a33898 *./test
 353368 ./tests/data/a-flac.flac
 c4228df189aad9567a037727d0e763e4 *./tests/data/flac.rotozoom.out.wav
 stddev: 33.31 PSNR:65.87 bytes:1040384
-4435d87463cd6c5407bd88cca241ca56  *./tests/data/a-wmav1.asf
+4435d87463cd6c5407bd88cca241ca56 *./tests/data/a-wmav1.asf
 106004 ./tests/data/a-wmav1.asf
 stddev:12251.50 PSNR:14.56 bytes:1056768
 stddev:2106.00 PSNR:29.85 bytes:1048576




More information about the ffmpeg-cvslog mailing list