avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Jan 2015 15:48:54 +0000 (16:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Jan 2015 16:09:39 +0000 (17:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/flac_parser.c

index 0e45ab0fed72218f374d7026e2c4f4fe4f79adcf..bc874c558bba6b9ecc19f3a72269825bb2431e79 100644 (file)
@@ -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");