summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@purplelabs.com>2007-04-06 10:37:34 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-06 10:37:34 +0000
commit5558bda83391c39cec945a4118c4cad0f61bc97b (patch)
tree343932126c35eaa8f96830b7b0a2543daa09d155
parente8d004170191b9d86bd7089e3e19d43ab1bd815c (diff)
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
-rw-r--r--libavcodec/amr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amr.c b/libavcodec/amr.c
index 8486cb38a1..46c35d4109 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)