mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/pjsdec: Avoid variable that is always zero
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
dc4af87d2f
commit
a7b82fe52b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user