From 4f263dce34822a3f8356f88fa736353a20fd0c8c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 3 Sep 2016 17:05:11 +0200 Subject: sd_lavc: enable teletext Whitelisting supported codecs is (probably) still better than just allowing everything, given the weird FFmpeg API. I'm also assuming Libav doesn't even have the codec ID, but I didn't check. Also add a --teletext-page option, since otherwise it decodes every teletext page and shows them in succession. And yes, we can't use av_opt_set_int() - instead we have to set it as string. Because FFmpeg's option system is terrible. --- options/options.h | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index 7d6701cd1e..96345e66f4 100644 --- a/options/options.h +++ b/options/options.h @@ -281,6 +281,7 @@ typedef struct MPOpts { int ass_hinting; int ass_shaper; int sub_clear_on_seek; + int teletext_page; int hwdec_api; char *hwdec_codecs; -- cgit v1.2.3