summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-03 11:51:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-10-03 11:51:53 +0000
commite57c4474d12aacf48139264e88cb66113a670593 (patch)
tree5bc4cf055c83959a1fa77f7520226f97242681fe /libvo
parent298b92b8a258c56dc3a1c0c69d15dd4f8012c10f (diff)
downloadmpv-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.c2
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);