From 26d6d032702c55616127511fa317b96763eb5cb3 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Wed, 1 Mar 2006 07:42:55 +0000 Subject: [PATCH] Set 'MJLS' FOURCC for JPEG-LS in AVI and documentation fix. Patch by kostya shishkov - gmail - com. Originally committed as revision 5082 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Changelog | 2 +- doc/ffmpeg-doc.texi | 1 + libavformat/avienc.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 962d259251..e5a5fd9f2b 100644 --- a/Changelog +++ b/Changelog @@ -29,7 +29,7 @@ version - TrueSpeech audio decoder - WMA2 audio decoder fixed, now all files should play correctly - RealAudio 14.4 and 28.8 decoders fixed -- JPEG-LS decoder +- JPEG-LS encoder and decoder - CamStudio video decoder - build system improvements - tabs and trailing whitespace removed from the codebase diff --git a/doc/ffmpeg-doc.texi b/doc/ffmpeg-doc.texi index 840423d82c..c50e9199dd 100644 --- a/doc/ffmpeg-doc.texi +++ b/doc/ffmpeg-doc.texi @@ -744,6 +744,7 @@ following image formats are supported: @item RealVideo 2.0 @tab X @tab X @item MJPEG @tab X @tab X @item lossless MJPEG @tab X @tab X +@item JPEG-LS @tab X @tab X @tab fourcc: MJLS, lossless and near-lossless is supported @item Apple MJPEG-B @tab @tab X @item Sunplus MJPEG @tab @tab X @tab fourcc: SP5X @item DV @tab X @tab X diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 4d97ad79b8..0a6adb1b6c 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -149,6 +149,8 @@ const CodecTag codec_bmp_tags[] = { { CODEC_ID_MJPEG, MKTAG('L', 'J', 'P', 'G') }, { CODEC_ID_LJPEG, MKTAG('L', 'J', 'P', 'G') }, { CODEC_ID_MJPEG, MKTAG('J', 'P', 'G', 'L') }, /* Pegasus lossless JPEG */ + { CODEC_ID_MJPEG, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - decoder */ + { CODEC_ID_JPEGLS, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - encoder */ { CODEC_ID_HUFFYUV, MKTAG('H', 'F', 'Y', 'U') }, { CODEC_ID_FFVHUFF, MKTAG('F', 'F', 'V', 'H') }, { CODEC_ID_CYUV, MKTAG('C', 'Y', 'U', 'V') },