diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-16 02:55:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 00:21:28 +0200 |
commit | 47c23f93925d3ae196eaa82ffbe552063ee06c5c (patch) | |
tree | 4847f1df5f5a36e014a9b5900bfdd3197ad49918 | |
parent | d51e0dd9b4d4169722092462feeb8e7c4b6bcf81 (diff) | |
download | ffmpeg-47c23f93925d3ae196eaa82ffbe552063ee06c5c.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 c2e86d96d3..560110ff77 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -2292,7 +2292,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]); |