[transcode] Update to new ffmpeg api - part 1

- no more use of AVStream.codec
- ditch some backwards compability
- move closer to being able do video, at least for artwork
This commit is contained in:
ejurgensen
2017-02-26 15:32:37 +01:00
parent b71b32438b
commit 25c1795af2
5 changed files with 531 additions and 711 deletions

View File

@@ -552,7 +552,7 @@ httpd_stream_file(struct evhttp_request *req, int id)
stream_cb = stream_chunk_xcode_cb;
st->xcode = transcode_setup(mfi->data_kind, mfi->path, mfi->song_length, XCODE_PCM16_HEADER, &st->size);
st->xcode = transcode_setup(XCODE_PCM16_HEADER, mfi->data_kind, mfi->path, mfi->song_length, &st->size);
if (!st->xcode)
{
DPRINTF(E_WARN, L_HTTPD, "Transcoding setup failed, aborting streaming\n");