[libav-stable] jpeg2000: enable 4 component pixel formats

Vittorio Giovara git at libav.org
Wed Aug 6 13:42:56 CEST 2014


Module: libav
Branch: master
Commit: cbc808d726afdf53d866264722785c1304c17390

Author:    Vittorio Giovara <vittorio.giovara at gmail.com>
Committer: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:      Wed Aug  6 11:07:08 2014 +0100

jpeg2000: enable 4 component pixel formats

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

---

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

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 7d081ea..aed9b2b 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -181,7 +181,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 libav-stable mailing list