avformat/pjsdec: Avoid variable that is always zero

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-06-14 21:27:35 +02:00
parent dc4af87d2f
commit a7b82fe52b
1 changed files with 1 additions and 2 deletions

View File

@ -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)