[FFmpeg-devel] [PATCH 33/35] avformat/mpl2dec: Avoid variable that is always zero
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Mon Jun 15 03:02:02 EEST 2020
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavformat/mpl2dec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/mpl2dec.c b/libavformat/mpl2dec.c
index bea258d9e9..38445c7aad 100644
--- a/libavformat/mpl2dec.c
+++ b/libavformat/mpl2dec.c
@@ -83,7 +83,6 @@ static int mpl2_read_header(AVFormatContext *s)
{
MPL2Context *mpl2 = s->priv_data;
AVStream *st = avformat_new_stream(s, NULL);
- int res = 0;
if (!st)
return AVERROR(ENOMEM);
@@ -122,7 +121,7 @@ static int mpl2_read_header(AVFormatContext *s)
}
ff_subtitles_queue_finalize(s, &mpl2->q);
- return res;
+ return 0;
}
static int mpl2_read_packet(AVFormatContext *s, AVPacket *pkt)
--
2.20.1
More information about the ffmpeg-devel
mailing list