15 Jul
2015
15 Jul
'15
2:56 p.m.
From: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libvo/vo_png.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvo/vo_png.c b/libvo/vo_png.c index 109ff4f..38a4097 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -167,6 +167,9 @@ static uint32_t draw_image(mp_image_t* mpi){ 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; -- 1.7.9.5