mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ptx: correct decoding
The image data is in BGR and not in RGB. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ad8dabfe9c
commit
0b74b8f649
@ -58,7 +58,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
avctx->pix_fmt = PIX_FMT_RGB555LE;
|
avctx->pix_fmt = PIX_FMT_BGR555LE;
|
||||||
|
|
||||||
if (buf_end - buf < offset)
|
if (buf_end - buf < offset)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#tb 0: 1/25
|
#tb 0: 1/25
|
||||||
0, 0, 0, 1, 393216, 0x019d9950
|
0, 0, 0, 1, 393216, 0x30479950
|
||||||
|
Loading…
Reference in New Issue
Block a user