Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int pack_bitstream(G723_1_Context *p,
- unsigned char *frame, int size)
- {
- ....
- int info_bits;
- ....
- if (p->cur_rate == RATE_6300) {
- info_bits = 0;
- put_bits(&pb, 2, info_bits);
- }
- ....
- return frame_size[info_bits];
- }
- This suspicious code was found in FFMpeg project by PVS-Studio static code analyzer.
- Warning message is:
- V614 Potentially uninitialized variable 'info_bits' used. g723_1.c 2335
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment