Mercurial > libavcodec.hg
comparison 4xm.c @ 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 |
comparison
equal
deleted
inserted
replaced
5533:8708867078ba | 5534:1c8999a3f193 |
---|---|
785 | 785 |
786 f->version= avctx->codec_tag == 0x40000; | 786 f->version= avctx->codec_tag == 0x40000; |
787 common_init(avctx); | 787 common_init(avctx); |
788 init_vlcs(f); | 788 init_vlcs(f); |
789 | 789 |
790 avctx->pix_fmt= PIX_FMT_RGB565; | 790 if(f->version) avctx->pix_fmt= PIX_FMT_RGB565; |
791 else avctx->pix_fmt= PIX_FMT_RGB555; | |
791 | 792 |
792 return 0; | 793 return 0; |
793 } | 794 } |
794 | 795 |
795 | 796 |