diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-14 21:27:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-22 13:16:58 +0200 |
commit | a7b82fe52b9041c1a0ba52daed10b3db00b47baa (patch) | |
tree | ac5521e1523e459c39c45bfde84b0abf66466459 /libavformat/pjsdec.c | |
parent | dc4af87d2faf30a64be802691b7d16f3707a8f40 (diff) |
avformat/pjsdec: Avoid variable that is always zero
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/pjsdec.c')
-rw-r--r-- | libavformat/pjsdec.c | 3 |
1 files changed, 1 insertions, 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) |