Commit a1a3950c authored by diego's avatar diego

Return correct decoded size, decoder is called with only one frame at a time.

patch by Benoit Fouet, benoit.fouet purplelabs com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8633 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a4ea1d9
...@@ -308,7 +308,7 @@ static int amr_nb_decode_frame(AVCodecContext * avctx, ...@@ -308,7 +308,7 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
} }
//Each AMR-frame results in 160 16-bit samples //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 not homed: check whether current frame is a homing frame */
if (s->reset_flag_old == 0) if (s->reset_flag_old == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment