# HG changeset patch # User reimar # Date 1191412313 0 # Node ID a2599160737cc341d2b526e5356320abd2cb7a68 # Parent ec55ecbbd7029a91e2abfb7eae9942792025c6af Use IMGFMT_IS_BGR instead of mpi->flags&MP_IMGFLAG_SWAPPED, this is easier to understand and in this case more accurate diff -r ec55ecbbd702 -r a2599160737c libvo/vo_png.c --- 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);