[FFmpeg-cvslog] jpeg2000: enable 4 component pixel formats

Vittorio Giovara git at videolan.org
Mon Aug 11 18:47:57 CEST 2014


ffmpeg | branch: release/2.2 | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Aug  6 11:07:08 2014 +0100| [6598aaea1ad2cf82d40abb191ac26a5e4e5147ba] | committer: Vittorio Giovara

jpeg2000: enable 4 component pixel formats

Bug-Id: 721
CC: libav-stable at libav.org
Sample-Id: 31230.mov

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6598aaea1ad2cf82d40abb191ac26a5e4e5147ba
---

 libavcodec/jpeg2000dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index cc154c3..3b4efc3 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -178,7 +178,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
         return AVERROR_INVALIDDATA;
     }
 
-    if (ncomponents > 3) {
+    if (ncomponents > 4) {
         avpriv_request_sample(s->avctx, "Support for %d components",
                               s->ncomponents);
         return AVERROR_PATCHWELCOME;



More information about the ffmpeg-cvslog mailing list