Commit 5f964c60 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ec9935b2
......@@ -182,7 +182,7 @@ static int find_headers_search_validate(FLACParseContext *fpc, int offset)
size++;
}
*end_handle = av_mallocz(sizeof(FLACHeaderMarker));
*end_handle = av_mallocz(sizeof(**end_handle));
if (!*end_handle) {
av_log(fpc->avctx, AV_LOG_ERROR,
"couldn't allocate FLACHeaderMarker\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment