[FFmpeg-cvslog] avcodec/pgssubdec: use AV_OPT_TYPE_BOOL for forced_subs_only option
Clément Bœsch
git at videolan.org
Sat Sep 12 18:27:31 CEST 2015
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Fri Sep 11 21:16:08 2015 +0200| [8e22becbc7ed7ceeab3f2cebee326c9bd30085e9] | committer: Clément Bœsch
avcodec/pgssubdec: use AV_OPT_TYPE_BOOL for forced_subs_only option
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e22becbc7ed7ceeab3f2cebee326c9bd30085e9
---
libavcodec/pgssubdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index 0d307f5..50fc5b6 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -675,7 +675,7 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size,
#define OFFSET(x) offsetof(PGSSubContext, x)
#define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[] = {
- {"forced_subs_only", "Only show forced subtitles", OFFSET(forced_subs_only), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, SD},
+ {"forced_subs_only", "Only show forced subtitles", OFFSET(forced_subs_only), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, SD},
{ NULL },
};
More information about the ffmpeg-cvslog
mailing list