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

rtogni subversion at mplayerhq.hu
Sun Aug 7 23:44:47 EEST 2016


Author: rtogni
Date: Sun Aug  7 23:44:47 2016
New Revision: 37882

Log:
Fix vo_png with recent ffmpeg

avcodec_open2() now requires timebase to be always set, even for png images.
The patch sets it to 1/1, since pictures do not have a framerate.

Modified:
   trunk/libvo/vo_png.c

Modified: trunk/libvo/vo_png.c
==============================================================================
--- trunk/libvo/vo_png.c	Tue Jul 26 00:31:21 2016	(r37881)
+++ trunk/libvo/vo_png.c	Sun Aug  7 23:44:47 2016	(r37882)
@@ -136,6 +136,8 @@ config(uint32_t width, uint32_t height,
         avctx->pix_fmt = imgfmt2pixfmt(format);
         avctx->width = width;
         avctx->height = height;
+        avctx->time_base.num = 1;
+        avctx->time_base.den = 1;
         if (avcodec_open2(avctx, avcodec_find_encoder(AV_CODEC_ID_PNG), NULL) < 0) {
             uninit();
             return -1;


More information about the MPlayer-cvslog mailing list