Skip to content

Commit de75775

Browse files
remove builds warning
1 parent c06b353 commit de75775

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/AvTranscoder/ColorTransform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ void ColorTransform::convert( const Image& src, Image& dst )
9191
&srcData[0], &srcLineSize[0], 0, src.desc().getHeight(),
9292
&dstData[0], &dstLineSize[0] );
9393

94-
if( ret != src.desc().getHeight() )
94+
if( ret != (int) src.desc().getHeight() )
9595
throw std::runtime_error( "error in color converter" );
9696
}
9797

98-
}
98+
}

src/AvTranscoder/DatasStructures/AudioDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void AudioDesc::set( const std::string& key, const bool value )
113113

114114
void AudioDesc::set( const std::string& key, const int value )
115115
{
116-
const AVOption* flagOpt = av_opt_find( m_codecContext, key.c_str(), NULL, 0, AV_OPT_SEARCH_CHILDREN );
116+
//const AVOption* flagOpt = av_opt_find( m_codecContext, key.c_str(), NULL, 0, AV_OPT_SEARCH_CHILDREN );
117117

118118
int error = av_opt_set_int( m_codecContext, key.c_str(), value, AV_OPT_SEARCH_CHILDREN );
119119
if( error != 0 )

src/AvTranscoder/DatasStructures/VideoDesc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ std::pair< size_t, size_t > VideoDesc::getTimeBase() const
8888
std::pair< size_t, size_t > timeBase;
8989
timeBase.first = m_codecContext->time_base.num;
9090
timeBase.second = m_codecContext->time_base.den;
91+
return timeBase;
9192
}
9293

9394
void VideoDesc::initCodecContext( )
@@ -154,7 +155,7 @@ void VideoDesc::set( const std::string& key, const bool value )
154155

155156
void VideoDesc::set( const std::string& key, const int value )
156157
{
157-
const AVOption* flagOpt = av_opt_find( m_codecContext, key.c_str(), NULL, 0, AV_OPT_SEARCH_CHILDREN );
158+
//const AVOption* flagOpt = av_opt_find( m_codecContext, key.c_str(), NULL, 0, AV_OPT_SEARCH_CHILDREN );
158159

159160
int error = av_opt_set_int( m_codecContext, key.c_str(), value, AV_OPT_SEARCH_CHILDREN );
160161
if( error != 0 )

0 commit comments

Comments
 (0)