Skip to content

Commit 14c699a

Browse files
author
Clement Champetier
committed
VideoGenerator: delete black frame
1 parent e9e6cbb commit 14c699a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/AvTranscoder/decoder/VideoGenerator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ VideoGenerator::VideoGenerator()
1212
{
1313
}
1414

15+
VideoGenerator::~VideoGenerator()
16+
{
17+
delete _blackImage;
18+
}
19+
1520
void VideoGenerator::setVideoFrameDesc( const VideoFrameDesc& frameDesc )
1621
{
1722
_frameDesc = frameDesc;

src/AvTranscoder/decoder/VideoGenerator.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class AvExport VideoGenerator : public IDecoder
1111
{
1212
public:
1313
VideoGenerator();
14+
~VideoGenerator();
1415

1516
VideoFrameDesc& getVideoFrameDesc() { return _frameDesc; }
1617
void setVideoFrameDesc( const VideoFrameDesc& frameDesc );

0 commit comments

Comments
 (0)