Skip to content

Commit eb2a5fe

Browse files
author
Clement Champetier
committed
Frame: do not assign value when create a frame with a size
1 parent 8a338d6 commit eb2a5fe

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/AvTranscoder/frame/AudioFrame.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class AvExport AudioFrame : public Frame
8181
{
8282
public:
8383
AudioFrame( const AudioFrameDesc& ref )
84-
: Frame( ref.getDataSize(), 0 )
84+
: Frame( ref.getDataSize() )
8585
, _audioFrameDesc( ref )
8686
, _nbSamples( 0 )
8787
{}

src/AvTranscoder/frame/Frame.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ Frame::Frame()
88
initAVPacket();
99
}
1010

11-
Frame::Frame( const size_t dataSize, const int value )
11+
Frame::Frame( const size_t dataSize )
1212
{
1313
av_new_packet( &_packet, dataSize );
14-
assign( dataSize, value );
1514
}
1615

1716
Frame::Frame(AVPacket& avPacket)

src/AvTranscoder/frame/Frame.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AvExport Frame
1717
Frame();
1818

1919
/// Create a frame with a the given buffer size
20-
Frame( const size_t dataSize, const int value );
20+
Frame( const size_t dataSize );
2121

2222
/// Create a frame from the given AVPAcket (copy data)
2323
Frame( AVPacket& avPacket );

src/AvTranscoder/frame/VideoFrame.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class AvExport VideoFrame : public Frame
9090
{
9191
public:
9292
VideoFrame( const VideoFrameDesc& ref )
93-
: Frame( ref.getDataSize(), 0 )
93+
: Frame( ref.getDataSize() )
9494
, _videoFrameDesc( ref )
9595
{}
9696

0 commit comments

Comments
 (0)