Fix problems for older ffmpeg versions #16

Merged
SlavekB merged 1 commits from ffmpeg-fix into master 2 years ago
Collaborator

Fix the following issues when building against older ffmpeg versions

  • the call to avcodec_free_context exceptions as avformat_close_input already performs cleanup of the AVCodecContext, so link the calling of avcodec_free_context in k3bffmpegwrapper.cpp to the version of libavformat in which codecpar appeared rather than when avcodec_free_context appeared.
  • avcodec_decode_audio4 was deprecated in libavcodec 57.106.100, not 57.12.100, so the version has been corrected.

Signed-off-by: aneejit1 aneejit1@gmail.com

Fix the following issues when building against older ffmpeg versions - the call to avcodec_free_context exceptions as avformat_close_input already performs cleanup of the AVCodecContext, so link the calling of avcodec_free_context in k3bffmpegwrapper.cpp to the version of libavformat in which codecpar appeared rather than when avcodec_free_context appeared. - avcodec_decode_audio4 was deprecated in libavcodec 57.106.100, not 57.12.100, so the version has been corrected. Signed-off-by: aneejit1 <aneejit1@gmail.com>
aneejit1 added 1 commit 2 years ago
6547c2d255
Fix problems for older ffmpeg versions
Ray-V commented 2 years ago
Collaborator

That works for ffmpeg-3.0.9

Builds, runs, and tested ffmpeg decoder by converting a .wma to .wav and .flac

That works for ffmpeg-3.0.9 Builds, runs, and tested ffmpeg decoder by converting a .wma to .wav and .flac
aneejit1 force-pushed ffmpeg-fix from 6547c2d255 to 18ea1e7a94 2 years ago
Poster
Collaborator

Super! I've updated the avcodec_receive_frame/avcodec_send_packet on k9copy and I'll start looking at doing the same to akode.

Latest push here is just to correct the commit message.

Super! I've updated the avcodec_receive_frame/avcodec_send_packet on k9copy and I'll start looking at doing the same to akode. Latest push here is just to correct the commit message.
Poster
Collaborator

I've done the update for akode.

I've done the update for akode.
SlavekB approved these changes 2 years ago
SlavekB left a comment
Owner

Thank you, it looks good.

Thank you, it looks good.
SlavekB merged commit 18ea1e7a94 into master 2 years ago
SlavekB deleted branch ffmpeg-fix 2 years ago
SlavekB added this to the R14.0.13 release milestone 2 years ago

Reviewers

SlavekB approved these changes 2 years ago
The pull request has been merged as 18ea1e7a94.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/k3b#16
Loading…
There is no content yet.