Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef enum PROG_ORDER {
- PROG_UNKNOWN = -1,
- LRCP = 0,
- RLCP = 1,
- RPCL = 2,
- PCRL = 3,
- CPRL = 4
- } OPJ_PROG_ORDER;
- OPJ_INT32 pi_check_next_level(....)
- {
- ....
- case 'P':
- switch(tcp->prg)
- {
- case LRCP||RLCP:
- if(tcp->prc_t == tcp->prcE){
- l=pi_check_next_level(i-1,cp,tileno,pino,prog);
- ....
- }
- Most likely this is what should be written here: case LRCP: .... case RLCP: ....
- This suspicious code was found in OpenJPEG project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always true: RLCP. pi.c 1708
- 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