File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ ICodec::~ICodec()
54
54
void ICodec::openCodec ()
55
55
{
56
56
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" );
58
58
59
59
const int ret = avcodec_open2 ( _avCodecContext, _avCodec, NULL );
60
60
if ( ret < 0 )
61
61
{
62
- std::string msg = " Unable open codec: " ;
62
+ std::string msg = " Unable to open codec: " ;
63
63
64
64
if ( _avCodec && _avCodec->long_name )
65
65
msg += _avCodec->long_name ;
@@ -84,7 +84,7 @@ std::string ICodec::getCodecName() const
84
84
assert ( _avCodecContext != NULL );
85
85
const AVCodecDescriptor * desc = avcodec_descriptor_get ( _avCodecContext->codec_id );
86
86
if ( ! desc )
87
- throw std::runtime_error ( " Codec Descriptor is not available." );
87
+ throw std::runtime_error ( " Codec Descriptor is not available." );
88
88
89
89
return desc->name ;
90
90
}
You can’t perform that action at this time.
0 commit comments