obs-ffmpeg: use avcodec_find_best_pix_fmt_of_list

The built-in format selector failed in certain cases like UtVideo now
using a differently packeg RGB format. FFmpeg has a format selection
functionality built-in that does pick the correct format however
(avcodec_find_best_pix_fmt_of_list), so we can simply use that instead.
This commit is contained in:
derrod
2019-10-16 13:24:27 +02:00
parent f8a0bd6440
commit 5e183ff9a7
3 changed files with 3 additions and 99 deletions

View File

@@ -21,8 +21,7 @@ set(obs-ffmpeg_config_HEADERS
set(obs-ffmpeg_HEADERS
obs-ffmpeg-formats.h
obs-ffmpeg-compat.h
closest-pixel-format.h)
obs-ffmpeg-compat.h)
set(obs-ffmpeg_SOURCES
obs-ffmpeg.c