We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab34bde commit 21b89b2Copy full SHA for 21b89b2
src/AvTranscoder/properties/PixelProperties.cpp
@@ -39,7 +39,7 @@ std::string PixelProperties::getPixelName() const
39
40
std::string PixelProperties::getPixelFormatName() const
41
{
42
- if(!_pixelFormat)
+ if(_pixelFormat == AV_PIX_FMT_NONE)
43
throw std::runtime_error("unable to find pixel format.");
44
45
const char* formatName = av_get_pix_fmt_name(_pixelFormat);
0 commit comments