Lines 95-101
bool K3bFFMpegFile::open()
Link Here
|
95 |
} |
95 |
} |
96 |
|
96 |
|
97 |
// analyze the streams |
97 |
// analyze the streams |
98 |
::av_find_stream_info( d->formatContext ); |
98 |
::avformat_find_stream_info( d->formatContext, 0 ); |
99 |
|
99 |
|
100 |
// we only handle files containing one audio stream |
100 |
// we only handle files containing one audio stream |
101 |
if( d->formatContext->nb_streams != 1 ) { |
101 |
if( d->formatContext->nb_streams != 1 ) { |
Lines 129-135
bool K3bFFMpegFile::open()
Link Here
|
129 |
|
129 |
|
130 |
// open the codec on our context |
130 |
// open the codec on our context |
131 |
kDebug() << "(K3bFFMpegFile) found codec for " << m_filename; |
131 |
kDebug() << "(K3bFFMpegFile) found codec for " << m_filename; |
132 |
if( ::avcodec_open( codecContext, d->codec ) < 0 ) { |
132 |
if( ::avcodec_open2( codecContext, d->codec, 0 ) < 0 ) { |
133 |
kDebug() << "(K3bFFMpegDecoderFactory) could not open codec."; |
133 |
kDebug() << "(K3bFFMpegDecoderFactory) could not open codec."; |
134 |
return false; |
134 |
return false; |
135 |
} |
135 |
} |