aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-15 16:48:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-15 17:09:39 +0100
commit5f964c6027da4924a9d0b9a9a6ab5efa7227c189 (patch)
tree79f42e43042bc0f0f2d958afe6104fe219d871de
parentec9935b288af8afdaaaf42b069da4310e66843ae (diff)
downloadffmpeg-5f964c6027da4924a9d0b9a9a6ab5efa7227c189.tar.gz
avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/flac_parser.c2
1 files changed, 1 insertions, 1 deletions
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");