From 5f964c6027da4924a9d0b9a9a6ab5efa7227c189 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 Jan 2015 16:48:54 +0100 Subject: avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type) Signed-off-by: Michael Niedermayer --- libavcodec/flac_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flac_parser.c') diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 0e45ab0fed..bc874c558b 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -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"); -- cgit v1.2.3