[FFmpeg-cvslog] avformat/pjsdec: Avoid variable that is always zero
Andreas Rheinhardt
git at videolan.org
Mon Jun 22 14:49:53 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Jun 14 21:27:35 2020 +0200| [a7b82fe52b9041c1a0ba52daed10b3db00b47baa] | committer: Andreas Rheinhardt
avformat/pjsdec: Avoid variable that is always zero
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a7b82fe52b9041c1a0ba52daed10b3db00b47baa
---
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)
More information about the ffmpeg-cvslog
mailing list