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++;
|
size++;
|
||||||
}
|
}
|
||||||
|
|
||||||
*end_handle = av_mallocz(sizeof(FLACHeaderMarker));
|
*end_handle = av_mallocz(sizeof(**end_handle));
|
||||||
if (!*end_handle) {
|
if (!*end_handle) {
|
||||||
av_log(fpc->avctx, AV_LOG_ERROR,
|
av_log(fpc->avctx, AV_LOG_ERROR,
|
||||||
"couldn't allocate FLACHeaderMarker\n");
|
"couldn't allocate FLACHeaderMarker\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user