diff options
author | Kenan Gillet <kenan.gillet@gmail.com> | 2009-05-04 03:25:57 +0000 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@opendot.cl> | 2009-05-04 03:25:57 +0000 |
commit | 5b05059d2d1d66600c0bfa97271c3603d9907f4f (patch) | |
tree | 5d1f7be7b272e55e001793d0879bd77197457d03 | |
parent | 6b71ed1678e83017e7d6f4531ff68041e2949e91 (diff) | |
download | ffmpeg-5b05059d2d1d66600c0bfa97271c3603d9907f4f.tar.gz |
Properly handle SILENCE frame. Patch by Kenan Gillet.
Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/qcelpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index eff57cfecf..68b9d2c04a 100644 --- a/libavcodec/qcelpdec.c +++ b/libavcodec/qcelpdec.c @@ -249,7 +249,7 @@ static void decode_gain_and_index(QCELPContext *q, gain[2] = gain[1]; gain[1] = 0.6*gain[0] + 0.4*gain[1]; } - }else + }else if (q->bitrate != SILENCE) { if(q->bitrate == RATE_OCTAVE) { |