diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-16 02:55:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 15:14:40 +0200 |
commit | 43d24fc34cb8a8dfc97055f26ba2f6301e144c62 (patch) | |
tree | 2d1cfc1358d252a93f1263c2b58bfc7712e2b793 | |
parent | 00476d924902e3d863bab57e43f4ec0e77a30675 (diff) | |
download | ffmpeg-43d24fc34cb8a8dfc97055f26ba2f6301e144c62.tar.gz |
avcodec/g723_1: add assert to help static code analyzers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1457f3fd90e17745791354fbb87899fc4803085a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/g723_1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 29eb4fae2c..39fc437935 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -2289,7 +2289,8 @@ static int pack_bitstream(G723_1_Context *p, unsigned char *frame, int size) if (p->cur_rate == RATE_6300) { info_bits = 0; put_bits(&pb, 2, info_bits); - } + }else + av_assert0(0); put_bits(&pb, 8, p->lsp_index[2]); put_bits(&pb, 8, p->lsp_index[1]); |