Mercurial > mplayer.hg
comparison libvo/vo_png.c @ 24670:a2599160737c
Use IMGFMT_IS_BGR instead of mpi->flags&MP_IMGFLAG_SWAPPED, this is easier
to understand and in this case more accurate
author | reimar |
---|---|
date | Wed, 03 Oct 2007 11:51:53 +0000 |
parents | ec55ecbbd702 |
children | fbcd9dcb0daf |
comparison
equal
deleted
inserted
replaced
24669:ec55ecbbd702 | 24670:a2599160737c |
---|---|
157 // if -dr or -slices then do nothing: | 157 // if -dr or -slices then do nothing: |
158 if(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK)) return VO_TRUE; | 158 if(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK)) return VO_TRUE; |
159 | 159 |
160 snprintf (buf, 100, "%08d.png", ++framenum); | 160 snprintf (buf, 100, "%08d.png", ++framenum); |
161 | 161 |
162 png = create_png(buf, mpi->w, mpi->h, mpi->flags&MP_IMGFLAG_SWAPPED); | 162 png = create_png(buf, mpi->w, mpi->h, IMGFMT_IS_BGR(mpi->imgfmt)); |
163 | 163 |
164 if(png.status){ | 164 if(png.status){ |
165 mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_PNG_ErrorInCreatePng); | 165 mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_PNG_ErrorInCreatePng); |
166 return 1; | 166 return 1; |
167 } | 167 } |