[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

@@ -31,7 +31,7 @@
static int
setup(struct player_source *ps)
{
ps->input_ctx = transcode_setup(ps->data_kind, ps->path, ps->len_ms, XCODE_PCM16_NOHEADER, NULL);
ps->input_ctx = transcode_setup(XCODE_PCM16_NOHEADER, ps->data_kind, ps->path, ps->len_ms, NULL);
if (!ps->input_ctx)
return -1;