|
@@ -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; |
|
|