Index: cmus-v2.5.0/ffmpeg.c =================================================================== --- cmus-v2.5.0/ffmpeg.c +++ cmus-v2.5.0/ffmpeg.c 2014-11-14 17:39:09.950181629 +0100 @@ -254,7 +254,7 @@ if (err < 0) { /* Clean up. cc is never opened at this point. (See above assumption.) */ - av_close_input_file(ic); + avformat_close_input(&ic); return err; } @@ -266,7 +266,7 @@ priv->input = ffmpeg_input_create(); if (priv->input == NULL) { avcodec_close(cc); - av_close_input_file(ic); + avformat_close_input(&ic); free(priv); return -IP_ERROR_INTERNAL; } @@ -301,7 +301,7 @@ struct ffmpeg_private *priv = ip_data->private; avcodec_close(priv->codec_context); - av_close_input_file(priv->input_context); + avformat_close_input(&priv->input_context); ffmpeg_input_free(priv->input); ffmpeg_output_free(priv->output); free(priv);