Skip to content

Commit ddd262c

Browse files
author
Clement Champetier
committed
ICodec: clean error messages
1 parent 7095f6b commit ddd262c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AvTranscoder/codec/ICodec.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ ICodec::~ICodec()
5454
void ICodec::openCodec()
5555
{
5656
if( ! _avCodecContext )
57-
throw std::runtime_error( "unable to open a codec with no codec context" );
57+
throw std::runtime_error( "Unable to open a codec without codec context" );
5858

5959
const int ret = avcodec_open2( _avCodecContext, _avCodec, NULL );
6060
if( ret < 0 )
6161
{
62-
std::string msg = "Unable open codec: ";
62+
std::string msg = "Unable to open codec: ";
6363

6464
if( _avCodec && _avCodec->long_name )
6565
msg += _avCodec->long_name;
@@ -84,7 +84,7 @@ std::string ICodec::getCodecName() const
8484
assert( _avCodecContext != NULL );
8585
const AVCodecDescriptor * desc = avcodec_descriptor_get( _avCodecContext->codec_id );
8686
if( ! desc )
87-
throw std::runtime_error( "Codec Descriptor is not available." );
87+
throw std::runtime_error( "Codec Descriptor is not available." );
8888

8989
return desc->name;
9090
}

0 commit comments

Comments
 (0)