mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
23 lines
918 B
Diff
23 lines
918 B
Diff
Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
|
|
===================================================================
|
|
--- k3b-2.0.2.orig/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
|
|
+++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
|
|
@@ -88,7 +88,7 @@ bool K3bFFMpegFile::open()
|
|
close();
|
|
|
|
// open the file
|
|
- int err = ::av_open_input_file( &d->formatContext, m_filename.toLocal8Bit(), 0, 0, 0 );
|
|
+ int err = ::avformat_open_input( &d->formatContext, m_filename.toLocal8Bit(), 0, NULL);
|
|
if( err < 0 ) {
|
|
kDebug() << "(K3bFFMpegFile) unable to open " << m_filename << " with error " << err;
|
|
return false;
|
|
@@ -143,7 +143,7 @@ bool K3bFFMpegFile::open()
|
|
}
|
|
|
|
// dump some debugging info
|
|
- ::dump_format( d->formatContext, 0, m_filename.toLocal8Bit(), 0 );
|
|
+ ::av_dump_format( d->formatContext, 0, m_filename.toLocal8Bit(), 0 );
|
|
|
|
return true;
|
|
}
|