Skip to content

Update of FFmpeg to n7.1 #5681

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

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

mdabek-nvidia
Copy link
Collaborator

Category:

Other - dependency update

Description:

Dependency update to FFmpeg n7.1

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

DALI-4077

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19443779]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19443779]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19446408]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19460045]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19446408]: BUILD PASSED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [19460045]: BUILD PASSED

@mdabek-nvidia mdabek-nvidia marked this pull request as ready for review October 18, 2024 12:06
@@ -527,6 +527,7 @@ void FramesDecoder::SeekFrame(int frame_id) {

// Seeking clears av buffers, so reset flush state info
if (flush_state_) {
while (ReadFlushFrame(nullptr, false)) {}
Copy link
Member

@stiepan stiepan Oct 21, 2024

Choose a reason for hiding this comment

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

Why does it help or what was wrong with it before?

Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently avcodec_flush_buffers doesn't clean decoder buffers properly anymore, and when we switch to the next file there are frames left in the buffer, and we cannot feed more frames to the decoder without reading them first. So this is an additional mechanism to clean the decoder output buffer as avcodec_flush_buffers (or the particular decoder implementation that should do that) doesn't fully work as we expect anymore. When works it should be noop.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

I wish we could narrow it down to a particular change in the codec...

@mdabek-nvidia mdabek-nvidia merged commit 55de733 into NVIDIA:main Oct 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants