[transcode] Implement new ffmpeg decoding methods: avcodec_send_packet/avcodec_receive_frame

This commit is contained in:
ejurgensen
2017-02-26 23:41:30 +01:00
parent 5afed60a42
commit e96b9500db
6 changed files with 249 additions and 258 deletions

View File

@@ -90,7 +90,9 @@ start(struct player_source *ps)
static int
stop(struct player_source *ps)
{
transcode_cleanup(ps->input_ctx);
struct transcode_ctx *ctx = ps->input_ctx;
transcode_cleanup(&ctx);
ps->input_ctx = NULL;
ps->setup_done = 0;