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
0cf4c6ff
Commit
0cf4c6ff
authored
Dec 18, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/ffmpeg: add "pure" attributes
parent
25f89afb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+2
-1
No files found.
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
0cf4c6ff
...
@@ -192,6 +192,7 @@ ffmpeg_init(gcc_unused const config_param ¶m)
...
@@ -192,6 +192,7 @@ ffmpeg_init(gcc_unused const config_param ¶m)
return
true
;
return
true
;
}
}
gcc_pure
static
int
static
int
ffmpeg_find_audio_stream
(
const
AVFormatContext
*
format_context
)
ffmpeg_find_audio_stream
(
const
AVFormatContext
*
format_context
)
{
{
...
@@ -246,7 +247,7 @@ timestamp_fallback(int64_t t, int64_t fallback)
...
@@ -246,7 +247,7 @@ timestamp_fallback(int64_t t, int64_t fallback)
* assume that the stream's start time is zero, which appears to be
* assume that the stream's start time is zero, which appears to be
* the best way out of that situation.
* the best way out of that situation.
*/
*/
static
int64_t
static
constexpr
int64_t
start_time_fallback
(
const
AVStream
&
stream
)
start_time_fallback
(
const
AVStream
&
stream
)
{
{
return
timestamp_fallback
(
stream
.
start_time
,
0
);
return
timestamp_fallback
(
stream
.
start_time
,
0
);
...
...
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