提交 7f8bfbee 编写于 作者: M Michael Niedermayer

avcodec/h264_parse: Clear ref_list[1] if only [0] is used

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 9d800d39
......@@ -253,6 +253,10 @@ int ff_h264_parse_ref_count(int *plist_count, int ref_count[2],
ref_count[0] = ref_count[1] = 0;
*plist_count = 0;
goto fail;
} else if (ref_count[1] - 1 > max[1]) {
av_log(logctx, AV_LOG_DEBUG, "reference overflow %u > %u \n",
ref_count[1] - 1, max[1]);
ref_count[1] = 0;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册