From 22a1e16c1233080f8cc645c23330411b5adcf6e6 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 7 Jan 2016 23:42:27 +0100 Subject: [PATCH] [artwork] Move timebase back, it must be set for the AVCodecContext for libav (and older versions of ffmpeg?) --- src/artwork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/artwork.c b/src/artwork.c index 49fec698..525a8396 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -440,9 +440,6 @@ artwork_rescale(struct evbuffer *evbuf, AVFormatContext *src_ctx, int s, int out goto out_free_dst_ctx; } - dst_st->time_base.num = 1; - dst_st->time_base.den = 25; - dst = dst_st->codec; avcodec_get_context_defaults3(dst, NULL); @@ -462,6 +459,9 @@ artwork_rescale(struct evbuffer *evbuf, AVFormatContext *src_ctx, int s, int out goto out_free_dst_ctx; } + dst->time_base.num = 1; + dst->time_base.den = 25; + dst->width = out_w; dst->height = out_h;