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