On Fri, Aug 11, 2017 at 09:33:07PM +0200, Luca Barbato wrote:
> On 11/08/2017 20:28, Diego Biurrun wrote:
> > --- a/libavcodec/cdxl.c
> > +++ b/libavcodec/cdxl.c
> > @@ -244,9 +244,9 @@ static int cdxl_decode_frame(AVCodecContext *avctx,
> > void *data,
> > if (c->video_size < aligned_width * avctx->height * c->bpp / 8)
> > return AVERROR_INVALIDDATA;
> > - if (!encoding && c->palette_size && c->bpp <= 8) {
> > + if (!encoding && c->palette_size && c->bpp <= 8 && c->format !=
> > CHUNKY) {
> > avctx->pix_fmt = AV_PIX_FMT_PAL8;
> > - } else if (encoding == 1 && (c->bpp == 6 || c->bpp == 8)) {
> > + } else if (encoding == 1 && (c->bpp == 6 || c->bpp == 8) && c->format
> > != CHUNKY) {
> > if (c->palette_size != (1 << (c->bpp - 1)))
> > return AVERROR_INVALIDDATA;
> > avctx->pix_fmt = AV_PIX_FMT_BGR24;
>
> I'm seeing in cdxl_decode_frame
>
> if (c->format != BIT_PLANAR && c->format != BIT_LINE) {
> avpriv_request_sample(avctx, "Pixel format 0x%0x", c->format);
> return AVERROR_PATCHWELCOME;
> }
Right, CHUNKY files are not supported on our side, disregard this patch.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel