-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FFmpeg errors when using the newer FFmpeg decoding API. (#2683)
The newer API requires decoding to be done in two stages: 1. send the packet to FFmpeg, and 2. receive 0 or more decoded frames from FFmpeg. Test: Served a webpage locally via flask. The webpage contained a single audio or video element. I then ran, e.g.: cobalt --url=http://127.0.0.1:5000/mp3 --enable_demuxer_extension and played the content (e.g. `document.querySelector('audio').play()` from the JS inspector) Previously, avcodec_receive_frame would repeatedly fail with AVERROR(EAGAIN), because no packets had been pushed. Bug: b/330908454 Change-Id: I245d74f880ed9297dca35e8c548f482373077121
- Loading branch information
1 parent
a652624
commit 999de53
Showing
7 changed files
with
160 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters