提交 5ebec76b 编写于 作者: J jp9000

deps/media-playback: Discard packet returns of invalid sizes

上级 f093028d
......@@ -278,7 +278,7 @@ bool mp_decode_next(struct mp_decode *d)
d->pkt.size -= ret;
}
if (d->pkt.size == 0) {
if (d->pkt.size <= 0) {
av_packet_unref(&d->orig_pkt);
av_init_packet(&d->orig_pkt);
av_init_packet(&d->pkt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册