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 b323fbc commit a1992c0Copy full SHA for a1992c0
src/AvTranscoder/essenceStream/AvInputVideo.cpp
@@ -108,6 +108,9 @@ bool AvInputVideo::readNextFrame( Frame& frameBuffer )
108
VideoFrame& imageBuffer = static_cast<VideoFrame&>( frameBuffer );
109
110
size_t decodedSize = avpicture_get_size( (AVPixelFormat)_frame->format, _frame->width, _frame->height );
111
+ if( ! decodedSize )
112
+ return false;
113
+
114
if( imageBuffer.getBuffer().size() != decodedSize )
115
imageBuffer.getBuffer().resize( decodedSize );
116
0 commit comments