Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demux_lavf: return AVERROR_EOF on file end #5033

Closed
wants to merge 1 commit into from

Conversation

@danielkucera
Copy link
Contributor

@danielkucera danielkucera commented Oct 23, 2017

libavformat fixed bug when 0 was considered as EOF. Now we need to return proper EOF using AVERROR_EOF

Signed-off-by: Daniel Kucera daniel.kucera@gmail.com

Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
@ghost
Copy link

@ghost ghost commented Oct 23, 2017

Appreciated (though still mismatches the coding style, maybe use a ?: expression), but FFmpeg is probably still broken since it broke the API for this. Older mpv releases will not work.

Earnestly referenced this pull request Oct 28, 2017
This is required now. Can't have FFmpeg upstream randomly break us and
then not fix it (like this recent EOF issue).

Upstream FFmpeg is of course still supported, but you will need to edit
the build scripts. Official support is only with the master branch of
our own repo.
@ghost
Copy link

@ghost ghost commented Oct 30, 2017

Seems like FFmpeg finally fixed their API break. Merged this PR as e9dc4ac. I changed the logic and the style of the added code.

@ghost ghost closed this Oct 30, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant