diff options
author | Clément Bœsch <clement@stupeflix.com> | 2015-11-21 22:05:07 +0100 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2015-12-04 15:43:33 +0100 |
commit | 43ecec0f0386557ef6f80729ab985098fbee71e8 (patch) | |
tree | ea4239f3a3b424a2138bda1d6098920a1df94f35 /libavformat/mpegts.c | |
parent | 0e62b5d1ef1312adb2c4815fcd59c5bcd6dc4419 (diff) | |
download | ffmpeg-43ecec0f0386557ef6f80729ab985098fbee71e8.tar.gz |
avformat: use AV_OPT_TYPE_BOOL in a bunch of places
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index c522c6dd43..4a6a5e5e85 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -166,15 +166,15 @@ struct MpegTSContext { static const AVOption options[] = { MPEGTS_OPTIONS, - {"fix_teletext_pts", "try to fix pts values of dvb teletext streams", offsetof(MpegTSContext, fix_teletext_pts), AV_OPT_TYPE_INT, + {"fix_teletext_pts", "try to fix pts values of dvb teletext streams", offsetof(MpegTSContext, fix_teletext_pts), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, AV_OPT_FLAG_DECODING_PARAM }, {"ts_packetsize", "output option carrying the raw packet size", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 0, AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_EXPORT | AV_OPT_FLAG_READONLY }, - {"scan_all_pmts", "scan and combine all PMTs", offsetof(MpegTSContext, scan_all_pmts), AV_OPT_TYPE_INT, + {"scan_all_pmts", "scan and combine all PMTs", offsetof(MpegTSContext, scan_all_pmts), AV_OPT_TYPE_BOOL, { .i64 = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM }, - {"skip_changes", "skip changing / adding streams / programs", offsetof(MpegTSContext, skip_changes), AV_OPT_TYPE_INT, + {"skip_changes", "skip changing / adding streams / programs", offsetof(MpegTSContext, skip_changes), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 }, - {"skip_clear", "skip clearing programs", offsetof(MpegTSContext, skip_clear), AV_OPT_TYPE_INT, + {"skip_clear", "skip clearing programs", offsetof(MpegTSContext, skip_clear), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 }, { NULL }, }; @@ -189,7 +189,7 @@ static const AVClass mpegts_class = { static const AVOption raw_options[] = { MPEGTS_OPTIONS, { "compute_pcr", "compute exact PCR for each transport stream packet", - offsetof(MpegTSContext, mpeg2ts_compute_pcr), AV_OPT_TYPE_INT, + offsetof(MpegTSContext, mpeg2ts_compute_pcr), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_DECODING_PARAM }, { "ts_packetsize", "output option carrying the raw packet size", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT, |