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

Update ld-ldf-reader for ffmpeg 4.5 #639

Merged
merged 1 commit into from
May 2, 2021

Conversation

atsampson
Copy link
Collaborator

This was based on an example that used the old avcodec_decode_audio4 API, which will be removed in ffmpeg 4.5. The changes here just update it to match the latest version of the example, which uses avcodec_receive_frame instead, with the seeking changes re-added.

The av_register_all function will also be removed in 4.5, but it's still necessary to call it in older versions of ffmpeg to get the codecs registered, so I've added a version conditional around it.

I've tested this with ffmpeg 3.4 (as in Ubuntu 18.04) and 4.5 in development (current master).

This was based on an example that used the old avcodec_decode_audio4
API, which will be removed in ffmpeg 4.5. The changes here just update
it to match the latest version of the example, which uses
avcodec_receive_frame instead, with the seeking changes re-added.

The av_register_all function will also be removed in 4.5, but it's still
necessary to call it in older versions of ffmpeg to get the codecs
registered, so I've added a version conditional around it.

I've tested this with ffmpeg 3.4 (as in Ubuntu 18.04) and 4.5 in
development (current master).
@atsampson atsampson added enhancement ld-decode An issue only affecting the ld-decode[r] labels May 2, 2021
@atsampson atsampson requested a review from happycube May 2, 2021 00:43
@happycube happycube merged commit 0a9db77 into happycube:master May 2, 2021
@happycube
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ld-decode An issue only affecting the ld-decode[r]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants