blob: f8dd122114903b7fdaac3508ee783872ff9ded80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
temporarly fix for ffmpeg-8
avcodec_close() can be safely removed because avcodec_free_context()
Next version will include this large PR: https://github.com/cmus/cmus/pull/1444
--- a/ip/ffmpeg.c
+++ b/ip/ffmpeg.c
@@ -226,7 +226,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
priv->codec = codec;
priv->input = ffmpeg_input_create();
if (priv->input == NULL) {
- avcodec_close(cc);
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 48, 101)
avcodec_free_context(&cc);
#endif
@@ -289,7 +288,6 @@ static int ffmpeg_close(struct input_plugin_data *ip_data)
{
struct ffmpeg_private *priv = ip_data->private;
- avcodec_close(priv->codec_context);
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 48, 101)
avcodec_free_context(&priv->codec_context);
#endif
|