[artwork] Do like libav says: "Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead."

This commit is contained in:
ejurgensen 2016-01-06 23:02:43 +01:00
parent 1f1d79025d
commit d56576094a
1 changed files with 3 additions and 3 deletions

View File

@ -359,6 +359,9 @@ artwork_rescale(struct evbuffer *evbuf, AVFormatContext *src_ctx, int s, int out
goto out_free_dst_ctx; goto out_free_dst_ctx;
} }
dst_st->time_base.num = 1;
dst_st->time_base.den = 25;
dst = dst_st->codec; dst = dst_st->codec;
avcodec_get_context_defaults3(dst, NULL); 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; goto out_free_dst_ctx;
} }
dst->time_base.num = 1;
dst->time_base.den = 25;
dst->width = out_w; dst->width = out_w;
dst->height = out_h; dst->height = out_h;