[MPlayer-cvslog] r37428 - trunk/libvo/vo_png.c

michael subversion at mplayerhq.hu
Thu Jul 16 18:35:35 CEST 2015


Author: michael
Date: Thu Jul 16 18:35:35 2015
New Revision: 37428

Log:
libvo/vo_png: set AVFrame width/height/format

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

Modified:
   trunk/libvo/vo_png.c

Modified: trunk/libvo/vo_png.c
==============================================================================
--- trunk/libvo/vo_png.c	Thu Jul 16 18:35:33 2015	(r37427)
+++ trunk/libvo/vo_png.c	Thu Jul 16 18:35:35 2015	(r37428)
@@ -167,6 +167,9 @@ static uint32_t draw_image(mp_image_t* m
     pic = av_frame_alloc();
     avctx->width = mpi->w;
     avctx->height = mpi->h;
+    pic->width  = mpi->w;
+    pic->height = mpi->h;
+    pic->format = imgfmt2pixfmt(png_format);
     pic->data[0] = mpi->planes[0];
     pic->linesize[0] = mpi->stride[0];
     buffersize = mpi->w * mpi->h * 8;


More information about the MPlayer-cvslog mailing list