Minor fixes in format name to display in the status bar

Fix especially to FFMPEG formats
This commit is contained in:
jfmcarreira committed 2016-03-09 00:49:11 +00:00
1 parent 15c5bb02e7
commit 6d1ce190ae
4 files changed
+17 -5

No files matched your search

+3 -3
View File
@@ -177,9 +177,9 @@ Bool LibAvContextHandle::initAvFormat( const char* filename, UInt& width, UInt&
getMem1D( &m_pchFrameBuffer, m_uiFrameBufferSize );
}
const char *codec_name = avcodec_get_name( video_dec_ctx->codec_id );
sprintf( m_acCodecName, "%s", codec_name );
const char *name = avcodec_get_name( video_dec_ctx->codec_id );
sprintf( m_acCodecName, "%s", name );
Double fr = 30;
if( video_stream->avg_frame_rate.den && video_stream->avg_frame_rate.num )
fr = av_q2d( video_stream->avg_frame_rate );