diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2015-01-30 18:30:17 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2015-01-31 11:32:05 +0100 |
commit | c8bec255eff3f1f612cfa39c871bdb0c3585a340 (patch) | |
tree | 932a9a48081c3a61f1c546206660484943e023a2 /libavdevice | |
parent | fbccbd68325a95de71455d087faf147690e5b988 (diff) | |
download | ffmpeg-c8bec255eff3f1f612cfa39c871bdb0c3585a340.tar.gz |
lavd/libcdio: add more paranoia mode constants
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/libcdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c index 8bb95e6070..9e9b0d86f3 100644 --- a/libavdevice/libcdio.c +++ b/libavdevice/libcdio.c @@ -165,10 +165,12 @@ static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, #define DEC AV_OPT_FLAG_DECODING_PARAM static const AVOption options[] = { { "speed", "set drive reading speed", OFFSET(speed), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, DEC }, - { "paranoia_mode", "set error recovery mode", OFFSET(paranoia_mode), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT_MIN, INT_MAX, DEC, "paranoia_mode" }, + { "paranoia_mode", "set error recovery mode", OFFSET(paranoia_mode), AV_OPT_TYPE_FLAGS, { .i64 = PARANOIA_MODE_DISABLE }, INT_MIN, INT_MAX, DEC, "paranoia_mode" }, + { "disable", "apply no fixups", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_DISABLE }, 0, 0, DEC, "paranoia_mode" }, { "verify", "verify data integrity in overlap area", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_VERIFY }, 0, 0, DEC, "paranoia_mode" }, { "overlap", "perform overlapped reads", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_OVERLAP }, 0, 0, DEC, "paranoia_mode" }, { "neverskip", "do not skip failed reads", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_NEVERSKIP }, 0, 0, DEC, "paranoia_mode" }, + { "full", "apply all recovery modes", 0, AV_OPT_TYPE_CONST, { .i64 = PARANOIA_MODE_FULL }, 0, 0, DEC, "paranoia_mode" }, { NULL }, }; |