Browse Source

avformat/mpl2dec: Avoid variable that is always zero

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
dc4af87d2f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/mpl2dec.c

+ 1
- 2
libavformat/mpl2dec.c View File

@@ -83,7 +83,6 @@ static int mpl2_read_header(AVFormatContext *s)
{
MPL2Context *mpl2 = s->priv_data;
AVStream *st = avformat_new_stream(s, NULL);
int res = 0;

if (!st)
return AVERROR(ENOMEM);
@@ -122,7 +121,7 @@ static int mpl2_read_header(AVFormatContext *s)
}

ff_subtitles_queue_finalize(s, &mpl2->q);
return res;
return 0;
}

static int mpl2_read_packet(AVFormatContext *s, AVPacket *pkt)


Loading…
Cancel
Save