changeset 5534:1c8999a3f193 libavcodec

set pix_fmt properly depending on version
author michael
date Mon, 13 Aug 2007 00:56:26 +0000
parents 8708867078ba
children 75b2c31d3dde
files 4xm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/4xm.c	Mon Aug 13 00:55:39 2007 +0000
+++ b/4xm.c	Mon Aug 13 00:56:26 2007 +0000
@@ -787,7 +787,8 @@
     common_init(avctx);
     init_vlcs(f);
 
-    avctx->pix_fmt= PIX_FMT_RGB565;
+    if(f->version) avctx->pix_fmt= PIX_FMT_RGB565;
+    else           avctx->pix_fmt= PIX_FMT_RGB555;
 
     return 0;
 }