mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/flac_parser: Use sizeof(variable) instead of sizeof(type)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ec9935b288
commit
5f964c6027
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user