Commit 0b74b8f6 authored by Paul B Mahol's avatar Paul B Mahol

ptx: correct decoding

The image data is in BGR and not in RGB.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ad8dabfe
......@@ -58,7 +58,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
return -1;
}
avctx->pix_fmt = PIX_FMT_RGB555LE;
avctx->pix_fmt = PIX_FMT_BGR555LE;
if (buf_end - buf < offset)
return AVERROR_INVALIDDATA;
......
#tb 0: 1/25
0, 0, 0, 1, 393216, 0x019d9950
0, 0, 0, 1, 393216, 0x30479950
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment