mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 07:35:57 -05:00
[artwork] Move timebase back, it must be set for the AVCodecContext for libav (and older versions of ffmpeg?)
This commit is contained in:
parent
3a31074c07
commit
22a1e16c12
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user