[FFmpeg-cvslog] avcodec/g723_1: add assert to help static code analyzers
Michael Niedermayer
git at videolan.org
Mon Jun 23 17:55:54 CEST 2014
ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 16 02:55:13 2014 +0200| [af109ff12581e616f7b3015c9c929ad6b54bdf3e] | committer: Michael Niedermayer
avcodec/g723_1: add assert to help static code analyzers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 1457f3fd90e17745791354fbb87899fc4803085a)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af109ff12581e616f7b3015c9c929ad6b54bdf3e
---
libavcodec/g723_1.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 09da766..e4bde2a 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]);
More information about the ffmpeg-cvslog
mailing list