diff options
Diffstat (limited to 'libmpdemux/demux_gif.c')
-rw-r--r-- | libmpdemux/demux_gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c index 0a59bff5d8..d82728ffb6 100644 --- a/libmpdemux/demux_gif.c +++ b/libmpdemux/demux_gif.c @@ -279,7 +279,7 @@ static demuxer_t* demux_open_gif(demuxer_t* demuxer) sh_video->fps = 5.0f; sh_video->frametime = 1.0f / sh_video->fps; - sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4)); + sh_video->bih = malloc(sizeof(*sh_video->bih) + (256 * 4)); sh_video->bih->biCompression = sh_video->format; sh_video->bih->biWidth = priv->w = (uint16_t)gif->SWidth; sh_video->bih->biHeight = priv->h = (uint16_t)gif->SHeight; |