Skip to content

Commit a3b2269

Browse files
author
Clement Champetier
committed
ICodec: remove call of avcodec_get_context_defaults3
According to ffmpeg documentation of the function: "Do not call this function if a non-NULL codec has been passed to avcodec_alloc_context3()" (which is our case).
1 parent 945ed4c commit a3b2269

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/AvTranscoder/codec/ICodec.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ void ICodec::setCodec( const ECodecType type, const AVCodecID codecId )
9393
{
9494
throw std::runtime_error( "unable to allocate codec context and set its fields to default values" );
9595
}
96-
97-
// Set default codec parameters
98-
if( avcodec_get_context_defaults3( _codecContext, _codec ) != 0 )
99-
{
100-
throw std::runtime_error( "unable to find codec default values" );
101-
}
10296
}
10397

10498
}

0 commit comments

Comments
 (0)