[SCM] libav/experimental: Return correct decoded size, decoder is called with only one frame at a time. patch by Benoit Fouet, benoit.fouet purplelabs com

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:58:35 UTC 2013


The following commit has been merged in the experimental branch:
commit 5558bda83391c39cec945a4118c4cad0f61bc97b
Author: Benoit Fouet <benoit.fouet at purplelabs.com>
Date:   Fri Apr 6 10:37:34 2007 +0000

    Return correct decoded size, decoder is called with only one frame at a time.
    patch by Benoit Fouet, benoit.fouet purplelabs com
    
    Originally committed as revision 8633 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/amr.c b/libavcodec/amr.c
index 8486cb3..46c35d4 100644
--- a/libavcodec/amr.c
+++ b/libavcodec/amr.c
@@ -308,7 +308,7 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
     }
 
     //Each AMR-frame results in 160 16-bit samples
-    *data_size+=160*2;
+    *data_size=160*2;
 
     /* if not homed: check whether current frame is a homing frame */
     if (s->reset_flag_old == 0)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list