mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
FFmpeg: Support lossless VP9 encoding
This commit is contained in:
parent
bf87a1db48
commit
3e75dae3dc
1
CHANGES
1
CHANGES
@ -89,6 +89,7 @@ Misc:
|
||||
- Wii: Move audio handling to callbacks (fixes mgba.io/i/803)
|
||||
- Qt: Clean up FPS target UI (fixes mgba.io/i/436)
|
||||
- Core: Remove broken option for whether rewinding restores save games
|
||||
- FFmpeg: Support lossless VP9 encoding
|
||||
|
||||
0.6.3: (2017-04-14)
|
||||
Bugfixes:
|
||||
|
@ -334,6 +334,10 @@ bool FFmpegEncoderOpen(struct FFmpegEncoder* encoder, const char* outfile) {
|
||||
encoder->video->pix_fmt = AV_PIX_FMT_YUV444P;
|
||||
}
|
||||
}
|
||||
if (strcmp(vcodec->name, "libvpx-vp9") == 0 && encoder->videoBitrate == 0) {
|
||||
av_opt_set(encoder->video->priv_data, "lossless", "1", 0);
|
||||
encoder->video->pix_fmt = AV_PIX_FMT_YUV444P;
|
||||
}
|
||||
|
||||
avcodec_open2(encoder->video, vcodec, 0);
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 55
|
||||
|
Loading…
Reference in New Issue
Block a user