提交 01a14ce0 编写于 作者: M Michael Niedermayer

riff: use av_assert

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 9d87c8e6
......@@ -25,6 +25,7 @@
#include "avio_internal.h"
#include "riff.h"
#include "libavcodec/bytestream.h"
#include "libavutil/avassert.h"
/* Note: when encoding, the first matching tag is used, so order is
important if multiple tags possible for a given codec. */
......@@ -706,7 +707,7 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
void ff_get_guid(AVIOContext *s, ff_asf_guid *g)
{
assert(sizeof(*g) == 16);
av_assert0(sizeof(*g) == 16); //compiler will optimize this out
if (avio_read(s, *g, sizeof(*g)) < (int)sizeof(*g))
memset(*g, 0, sizeof(*g));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册