[MPlayer-cvslog] r24690 - trunk/libvo/vo_png.c
reimar
subversion at mplayerhq.hu
Wed Oct 3 13:51:54 CEST 2007
Author: reimar
Date: Wed Oct 3 13:51:53 2007
New Revision: 24690
Log:
Use IMGFMT_IS_BGR instead of mpi->flags&MP_IMGFLAG_SWAPPED, this is easier
to understand and in this case more accurate
Modified:
trunk/libvo/vo_png.c
Modified: trunk/libvo/vo_png.c
==============================================================================
--- trunk/libvo/vo_png.c (original)
+++ trunk/libvo/vo_png.c Wed Oct 3 13:51:53 2007
@@ -159,7 +159,7 @@ static uint32_t draw_image(mp_image_t* m
snprintf (buf, 100, "%08d.png", ++framenum);
- png = create_png(buf, mpi->w, mpi->h, mpi->flags&MP_IMGFLAG_SWAPPED);
+ png = create_png(buf, mpi->w, mpi->h, IMGFMT_IS_BGR(mpi->imgfmt));
if(png.status){
mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_PNG_ErrorInCreatePng);
More information about the MPlayer-cvslog
mailing list