aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 02:55:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-16 02:55:13 +0200
commit1457f3fd90e17745791354fbb87899fc4803085a (patch)
tree2b4b9fc128236b9f030d568bc8ab467719faa37e
parentb8598f6ce61ccda3f2ff0c730b009fb650e42986 (diff)
downloadffmpeg-1457f3fd90e17745791354fbb87899fc4803085a.tar.gz
avcodec/g723_1: add assert to help static code analyzers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/g723_1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 09da7665b8..e4bde2afd1 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -2285,7 +2285,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]);