mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 09:31:06 +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++;
|
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…
Reference in New Issue
Block a user