intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

Branch condition evaluates to a garbage value #884

Open QiAnXinCodeSafe opened 4 years ago

QiAnXinCodeSafe commented 4 years ago

https://github.com/intel/libyami/blob/90ac9995763ad569157b3a216da88e090720ed70/encoder/vaapiencoder_base.cpp#L686

'isEmpty' declared without an initial value https://github.com/intel/libyami/blob/90ac9995763ad569157b3a216da88e090720ed70/encoder/vaapiencoder_base.cpp#L681

Calling 'checkEmpty()' in line 685, and the checkEmpty() defined in line 642. Entered call from 'checkEmpty()', returning without writing to '*outEmpty'

https://github.com/intel/libyami/blob/90ac9995763ad569157b3a216da88e090720ed70/encoder/vaapiencoder_base.cpp#L647