提交 b69183f6 编写于 作者: V Vittorio Giovara

nutenc: check for negative index rather than assert

CC: libav-stable@libav.org
Bug-Id: CID 703721
上级 be42c0b8
......@@ -906,7 +906,10 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
frame_code = i;
}
}
assert(frame_code != -1);
if (frame_code < 0)
return AVERROR_BUG;
fc = &nut->frame_code[frame_code];
flags = fc->flags;
needed_flags = get_needed_flags(nut, nus, fc, pkt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册