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
8f84e1be
Commit
8f84e1be
authored
3 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/plugins/FfmpegIo: return AVERROR_EOF at end of file
This part of the AVIOContext API is not documented :-( Closes
https://github.com/MusicPlayerDaemon/MPD/issues/1448
parent
9975905f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
NEWS
NEWS
+1
-0
FfmpegIo.cxx
src/decoder/plugins/FfmpegIo.cxx
+5
-1
No files found.
NEWS
View file @
8f84e1be
ver 0.23.6 (not yet released)
ver 0.23.6 (not yet released)
* decoder
* decoder
- ffmpeg: fix end-of-file check (update stuck at empty files)
- opus: fix "readpicture" on Opus files
- opus: fix "readpicture" on Opus files
* output
* output
- pipewire: fix crash bug if setting volume before playback starts
- pipewire: fix crash bug if setting volume before playback starts
...
...
This diff is collapsed.
Click to expand it.
src/decoder/plugins/FfmpegIo.cxx
View file @
8f84e1be
...
@@ -35,7 +35,11 @@ AvioStream::~AvioStream()
...
@@ -35,7 +35,11 @@ AvioStream::~AvioStream()
inline
int
inline
int
AvioStream
::
Read
(
void
*
dest
,
int
size
)
AvioStream
::
Read
(
void
*
dest
,
int
size
)
{
{
return
decoder_read
(
client
,
input
,
dest
,
size
);
const
auto
nbytes
=
decoder_read
(
client
,
input
,
dest
,
size
);
if
(
nbytes
==
0
)
return
AVERROR_EOF
;
return
nbytes
;
}
}
inline
int64_t
inline
int64_t
...
...
This diff is collapsed.
Click to expand it.
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