diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c index 3f6c746e8c..6b8dbd329d 100644 --- a/libavcodec/ptx.c +++ b/libavcodec/ptx.c @@ -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; diff --git a/tests/ref/fate/ptx b/tests/ref/fate/ptx index 8d59468735..7edbbddc4c 100644 --- a/tests/ref/fate/ptx +++ b/tests/ref/fate/ptx @@ -1,2 +1,2 @@ #tb 0: 1/25 -0, 0, 0, 1, 393216, 0x019d9950 +0, 0, 0, 1, 393216, 0x30479950