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

Fix av_* API usage for deprecations #220

Merged
merged 5 commits into from
May 14, 2021
Merged

Conversation

mjcarroll
Copy link
Contributor

@mjcarroll mjcarroll commented May 14, 2021

🦟 Bug fix

Fixes #203

Summary

After this macOS and other platforms with newer ffmpeg/libav version (Fedora 34) should build without deprecation warnings.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@github-actions github-actions bot added 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome labels May 14, 2021
@codecov
Copy link

codecov bot commented May 14, 2021

Codecov Report

Merging #220 (7936d8a) into ign-common3 (eb408f0) will decrease coverage by 0.05%.
The diff coverage is 68.42%.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-common3     #220      +/-   ##
===============================================
- Coverage        76.56%   76.50%   -0.06%     
===============================================
  Files               73       73              
  Lines            10357    10361       +4     
===============================================
- Hits              7930     7927       -3     
- Misses            2427     2434       +7     
Impacted Files Coverage Δ
av/src/VideoEncoder.cc 76.12% <ø> (-0.14%) ⬇️
av/src/Video.cc 76.98% <60.00%> (-1.07%) ⬇️
av/src/AudioDecoder.cc 83.96% <77.77%> (-1.48%) ⬇️
av/src/ffmpeg_inc.cc 65.00% <0.00%> (-15.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb408f0...7936d8a. Read the comment docs.

@scpeters
Copy link
Member

did you want to cherry-pick d6b7844?

@mjcarroll
Copy link
Contributor Author

did you want to cherry-pick d6b7844?

Ah! Didn't even see that.

scpeters and others added 2 commits May 14, 2021 13:55
av_packet_alloc is already calling the equivalent of av_init_packet
so we don't need to call it here.

Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
@mjcarroll mjcarroll force-pushed the fix_av_deprecations branch from cfc90d2 to 875037f Compare May 14, 2021 20:06
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks reasonable, CI is happy 🎉

@mjcarroll mjcarroll enabled auto-merge (squash) May 14, 2021 20:53
@mjcarroll mjcarroll merged commit 153f320 into ign-common3 May 14, 2021
@mjcarroll mjcarroll deleted the fix_av_deprecations branch May 14, 2021 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants