mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 05:04:16 -05:00
[artwork/transcode] Adjust transcode.c so it can take care of artwork
rescaling, meaning we can do without parallel ffmpeg interfaces. This also moves artwork rescaling from libswscale to libavfilter, which seems to fix a problem with PNG rescaling.
This commit is contained in:
@@ -309,11 +309,10 @@ stream_chunk_xcode_cb(int fd, short event, void *arg)
|
||||
struct timeval tv;
|
||||
int xcoded;
|
||||
int ret;
|
||||
int dummy;
|
||||
|
||||
st = (struct stream_ctx *)arg;
|
||||
|
||||
xcoded = transcode(st->evbuf, STREAM_CHUNK_SIZE, st->xcode, &dummy);
|
||||
xcoded = transcode(st->evbuf, NULL, st->xcode, STREAM_CHUNK_SIZE);
|
||||
if (xcoded <= 0)
|
||||
{
|
||||
if (xcoded == 0)
|
||||
|
||||
Reference in New Issue
Block a user