Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 30275:e5c5eccd8d84
Simplify reset_ptr(): employ usePal() macro rather than enumerating
all the paletted formats.
author | stefano |
---|---|
date | Sat, 16 Jan 2010 11:08:16 +0000 |
parents | 2fad32dd128c |
children | 03f99130b7c3 |
comparison
equal
deleted
inserted
replaced
30274:ef801d917cc1 | 30275:e5c5eccd8d84 |
---|---|
2933 { | 2933 { |
2934 if(!isALPHA(format)) | 2934 if(!isALPHA(format)) |
2935 src[3]=NULL; | 2935 src[3]=NULL; |
2936 if(!isPlanarYUV(format)) { | 2936 if(!isPlanarYUV(format)) { |
2937 src[3]=src[2]=NULL; | 2937 src[3]=src[2]=NULL; |
2938 if( format != PIX_FMT_PAL8 | 2938 |
2939 && format != PIX_FMT_RGB8 | 2939 if (!usePal(format)) |
2940 && format != PIX_FMT_BGR8 | |
2941 && format != PIX_FMT_RGB4_BYTE | |
2942 && format != PIX_FMT_BGR4_BYTE | |
2943 ) | |
2944 src[1]= NULL; | 2940 src[1]= NULL; |
2945 } | 2941 } |
2946 } | 2942 } |
2947 | 2943 |
2948 /** | 2944 /** |