From e57c4474d12aacf48139264e88cb66113a670593 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 3 Oct 2007 11:51:53 +0000 Subject: Use IMGFMT_IS_BGR instead of mpi->flags&MP_IMGFLAG_SWAPPED, this is easier to understand and in this case more accurate git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24690 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/vo_png.c b/libvo/vo_png.c index c5355b35e8..8333713a1e 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -159,7 +159,7 @@ static uint32_t draw_image(mp_image_t* mpi){ 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); -- cgit v1.2.3