Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ac59ec34
Commit
ac59ec34
authored
May 31, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/ffmpeg: fix build failure with FFmpeg 3.4
av_demuxer_iterate() was added in libavformat 58.9.100. Closes
https://github.com/MusicPlayerDaemon/MPD/issues/1178
parent
82da57b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
NEWS
NEWS
+1
-0
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+6
-0
No files found.
NEWS
View file @
ac59ec34
...
@@ -3,6 +3,7 @@ ver 0.22.9 (not yet released)
...
@@ -3,6 +3,7 @@ ver 0.22.9 (not yet released)
- simple: load all .mpdignore files of all parent directories
- simple: load all .mpdignore files of all parent directories
* decoder
* decoder
- ffmpeg: support the tags "sort_album", "album-sort", "artist-sort"
- ffmpeg: support the tags "sort_album", "album-sort", "artist-sort"
- ffmpeg: fix build failure with FFmpeg 3.4
* Windows
* Windows
- fix build failure with SQLite
- fix build failure with SQLite
...
...
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
ac59ec34
...
@@ -659,6 +659,8 @@ ffmpeg_scan_stream(InputStream &is, TagHandler &handler)
...
@@ -659,6 +659,8 @@ ffmpeg_scan_stream(InputStream &is, TagHandler &handler)
return
FfmpegScanStream
(
*
f
,
handler
);
return
FfmpegScanStream
(
*
f
,
handler
);
}
}
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(58, 9, 100)
static
void
static
void
ffmpeg_uri_decode
(
DecoderClient
&
client
,
const
char
*
uri
)
ffmpeg_uri_decode
(
DecoderClient
&
client
,
const
char
*
uri
)
{
{
...
@@ -690,6 +692,8 @@ ffmpeg_protocols() noexcept
...
@@ -690,6 +692,8 @@ ffmpeg_protocols() noexcept
return
protocols
;
return
protocols
;
}
}
#endif
/**
/**
* A list of extensions found for the formats supported by ffmpeg.
* A list of extensions found for the formats supported by ffmpeg.
* This list is current as of 02-23-09; To find out if there are more
* This list is current as of 02-23-09; To find out if there are more
...
@@ -813,6 +817,8 @@ static const char *const ffmpeg_mime_types[] = {
...
@@ -813,6 +817,8 @@ static const char *const ffmpeg_mime_types[] = {
constexpr
DecoderPlugin
ffmpeg_decoder_plugin
=
constexpr
DecoderPlugin
ffmpeg_decoder_plugin
=
DecoderPlugin
(
"ffmpeg"
,
ffmpeg_decode
,
ffmpeg_scan_stream
)
DecoderPlugin
(
"ffmpeg"
,
ffmpeg_decode
,
ffmpeg_scan_stream
)
.
WithInit
(
ffmpeg_init
,
ffmpeg_finish
)
.
WithInit
(
ffmpeg_init
,
ffmpeg_finish
)
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(58, 9, 100)
.
WithProtocols
(
ffmpeg_protocols
,
ffmpeg_uri_decode
)
.
WithProtocols
(
ffmpeg_protocols
,
ffmpeg_uri_decode
)
#endif
.
WithSuffixes
(
ffmpeg_suffixes
)
.
WithSuffixes
(
ffmpeg_suffixes
)
.
WithMimeTypes
(
ffmpeg_mime_types
);
.
WithMimeTypes
(
ffmpeg_mime_types
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment