提交 dc4af87d 编写于 作者: A Andreas Rheinhardt

avformat/mpl2dec: Avoid variable that is always zero

Signed-off-by: NAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
上级 7256c363
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册