]> git.sesse.net Git - ffmpeg/commitdiff
ptx: correct decoding
authorPaul B Mahol <onemda@gmail.com>
Mon, 16 Jul 2012 21:53:44 +0000 (21:53 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 17 Jul 2012 17:06:24 +0000 (17:06 +0000)
The image data is in BGR and not in RGB.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/ptx.c
tests/ref/fate/ptx

index 3f6c746e8c79de42bfd12946bd842b0f1e610593..6b8dbd329d48db96c6f46e2d174b146e3f0630d8 100644 (file)
@@ -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;
index 8d59468735cb5d9c9e293ed3f1814b3b54a6963b..7edbbddc4c8a9ed9ad94ebce7bbebd583ccd2259 100644 (file)
@@ -1,2 +1,2 @@
 #tb 0: 1/25
-0,          0,          0,        1,   393216, 0x019d9950
+0,          0,          0,        1,   393216, 0x30479950