mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
set pix_fmt properly depending on version
Originally committed as revision 10095 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
70bbeb6fbf
commit
cf786021a6
@ -787,7 +787,8 @@ static int decode_init(AVCodecContext *avctx){
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user