From d56576094aca29548a66a15d79df7effc83597af Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 6 Jan 2016 23:02:43 +0100 Subject: [PATCH] [artwork] Do like libav says: "Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead." --- src/artwork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/artwork.c b/src/artwork.c index e6228ea3..b977b47c 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -359,6 +359,9 @@ 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); @@ -378,9 +381,6 @@ 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;