diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 05:13:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 21:56:57 +0200 |
commit | 7e2bdea764a565ad213f7676e558e5ce305bedef (patch) | |
tree | a904d4dc0811c56d774652c4e2ef1ed0988548fa /libavcodec | |
parent | 9a2fc170b10e13781d33d99f09fa978bd3623515 (diff) | |
download | ffmpeg-7e2bdea764a565ad213f7676e558e5ce305bedef.tar.gz |
avcodec/j2kenc: Use JP2 format by default
Without the JP2 fields its not possible to identify the colorspace
Fixes Ticket538
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/j2kenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index ebf8cc7f7d..293515c1ee 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -1109,7 +1109,7 @@ static int j2kenc_destroy(AVCodecContext *avctx) #define OFFSET(x) offsetof(Jpeg2000EncoderContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { - { "format", "Codec Format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = CODEC_J2K }, CODEC_J2K, CODEC_JP2, VE, "format" }, + { "format", "Codec Format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = CODEC_JP2 }, CODEC_J2K, CODEC_JP2, VE, "format" }, { "j2k", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CODEC_J2K }, 0, 0, VE, "format" }, { "jp2", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CODEC_JP2 }, 0, 0, VE, "format" }, { NULL } |