diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-03 11:51:53 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-03 11:51:53 +0000 |
commit | e57c4474d12aacf48139264e88cb66113a670593 (patch) | |
tree | 5bc4cf055c83959a1fa77f7520226f97242681fe /libvo | |
parent | 298b92b8a258c56dc3a1c0c69d15dd4f8012c10f (diff) | |
download | mpv-e57c4474d12aacf48139264e88cb66113a670593.tar.bz2 mpv-e57c4474d12aacf48139264e88cb66113a670593.tar.xz |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_png.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |