mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
patch from Sami<samiwieciekto at gmail.com> with pref guard:
Enable skipping loop filter and allow non spec compliant speedup tricks. to enable, create new boolean pref "media.ffmpeg.skip_loop_filter" and set it to true.
This commit is contained in:
parent
04671d8d62
commit
dd094ae552
2 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "FFmpegVideoDecoder.h"
|
||||
#include "FFmpegLog.h"
|
||||
#include "MediaPrefs.h"
|
||||
#include "mozilla/PodOperations.h"
|
||||
|
||||
#include "libavutil/pixfmt.h"
|
||||
|
|
@ -152,6 +153,12 @@ FFmpegVideoDecoder<LIBAV_VER>::InitCodecContext()
|
|||
mCodecContext->thread_type = FF_THREAD_SLICE | FF_THREAD_FRAME;
|
||||
}
|
||||
|
||||
if(MediaPrefs::FFmpegSkipLoopFilter()) {
|
||||
// Enable skipping loop filter and allow non spec compliant speedup tricks.
|
||||
mCodecContext->flags2 |= 1; //AV_CODEC_FLAG2_FAST - could not inline for unknown reason ^-^'
|
||||
mCodecContext->skip_loop_filter = AVDISCARD_ALL;
|
||||
}
|
||||
|
||||
// FFmpeg will call back to this to negotiate a video pixel format.
|
||||
mCodecContext->get_format = ChoosePixelFormat;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue