virinext / hevcesbrowser

HEVCESBrowser is a tool for analyzing hevc(h265) bitstreams
GNU General Public License v2.0
338 stars 98 forks source link

fixing to pre_lut_num_val_minus1 array reference. (utils/hevc_es_browser_gui/SyntaxViewer.cpp) #9

Closed yoya closed 5 years ago

yoya commented 5 years ago

error: ordered comparison between pointer and zero

environment) macOS Mojave

% cc --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

error log)

SyntaxViewer.cpp:2505:40: error: ordered comparison between pointer and zero
      ('uint8_t *' (aka 'unsigned char *') and 'int')
      if(pSei -> pre_lut_num_val_minus1> 0)
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~
SyntaxViewer.cpp:2553:41: error: ordered comparison between pointer and zero
      ('uint8_t *' (aka 'unsigned char *') and 'int')
      if(pSei -> post_lut_num_val_minus1> 0)
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~
3 warnings and 2 errors generated.
make: *** [../../build/qt/SyntaxViewer.o] Error 1
virinext commented 5 years ago

Thank you for fixing!