Skip to content

Commit 7c4a709

Browse files
author
Clement Champetier
committed
AvInputStream: clean
* Indentation. * Implement constructor per copy in cpp.
1 parent d57e4f5 commit 7c4a709

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/AvTranscoder/codedStream/AvInputStream.cpp

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ namespace avtranscoder
1818
{
1919

2020
AvInputStream::AvInputStream( InputFile& inputFile, const size_t streamIndex )
21-
: IInputStream( )
22-
, _inputFile( &inputFile )
23-
, _codec( NULL )
24-
, _packetDuration( 0 )
25-
, _streamIndex( streamIndex )
26-
, _bufferized( false )
21+
: IInputStream( )
22+
, _inputFile( &inputFile )
23+
, _codec( NULL )
24+
, _packetDuration( 0 )
25+
, _streamIndex( streamIndex )
26+
, _bufferized( false )
2727
{
2828
AVCodecContext* context = _inputFile->getFormatContext().streams[_streamIndex]->codec;
2929

@@ -63,7 +63,15 @@ AvInputStream::AvInputStream( InputFile& inputFile, const size_t streamIndex )
6363
default:
6464
break;
6565
}
66-
66+
}
67+
68+
AvInputStream( const AvInputStream& inputStream )
69+
: IInputStream( )
70+
, _inputFile( inputStream._inputFile )
71+
, _codec( inputStream._codec )
72+
, _streamIndex( inputStream._streamIndex )
73+
, _bufferized( inputStream._bufferized )
74+
{
6775
}
6876

6977
AvInputStream::~AvInputStream( )

src/AvTranscoder/codedStream/AvInputStream.hpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@ class AvExport AvInputStream : public IInputStream
1414
{
1515
public:
1616
AvInputStream( InputFile& inputFile, const size_t streamIndex );
17-
~AvInputStream( );
17+
AvInputStream( const AvInputStream& inputStream );
1818

19-
AvInputStream( const AvInputStream& inputStream )
20-
: IInputStream( )
21-
, _inputFile( inputStream._inputFile )
22-
, _codec( inputStream._codec )
23-
, _streamIndex( inputStream._streamIndex )
24-
, _bufferized( inputStream._bufferized )
25-
{
26-
}
19+
~AvInputStream( );
2720

2821
size_t getStreamIndex() const { return _streamIndex; }
2922

0 commit comments

Comments
 (0)