2017-07-20 21:46 GMT+02:00 Paras Chadha <paraschadh...@gmail.com>:

> +            case AV_PIX_FMT_RGB24:
> +            case AV_PIX_FMT_RGBA:
> +                for (k = 0; k < naxis3; k++) {
> +                    for (i = 0; i < avctx->height; i++) {
> +                        ptr = p->data[0] + (avctx->height - i - 1) * 
> p->linesize[0] + k;
> +                        for (j = 0; j < avctx->width; j++) {
> +                            bytestream_put_byte(&bytestream, ptr[0]);
> +                            ptr += naxis3;

(Sorry if this is nonsense:)
Shouldn't you be using PIX_FMT_GBRP and PIX_FMT_GBRAP?

Carl Eugen
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to