mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
[FFmpeg] Use new decode API with recent FFmpeg version.
In libavcodec 58 and later, the old avcodec_decode_video2 is broken and only return the first visible frame found after a VP9 super-frame.
This commit is contained in:
parent
4f308095ce
commit
5949fc61dc
5 changed files with 68 additions and 7 deletions
|
|
@ -49,6 +49,7 @@ private:
|
|||
MediaResult DoDecode(MediaRawData* aSample) override;
|
||||
MediaResult DoDecode(MediaRawData* aSample, bool* aGotFrame);
|
||||
MediaResult DoDecode(MediaRawData* aSample, uint8_t* aData, int aSize, bool* aGotFrame);
|
||||
MediaResult CreateImage(int64_t aOffset, int64_t aPts, int64_t aDuration);
|
||||
void ProcessDrain() override;
|
||||
void ProcessFlush() override;
|
||||
void OutputDelayedFrames();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue