changeset 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
files libvo/vo_png.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_png.c	Wed Oct 03 11:50:15 2007 +0000
+++ b/libvo/vo_png.c	Wed Oct 03 11:51:53 2007 +0000
@@ -159,7 +159,7 @@
     
     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);