mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
298b92b8a2
commit
e57c4474d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue