mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 18:21:04 +00:00
avformat/bethsoftvid: print error in case the side date failed to be allocated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5ee6527c43
commit
0894b9405c
@ -194,6 +194,9 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt,
|
|||||||
BVID_PALETTE_SIZE);
|
BVID_PALETTE_SIZE);
|
||||||
if (pdata)
|
if (pdata)
|
||||||
memcpy(pdata, vid->palette, BVID_PALETTE_SIZE);
|
memcpy(pdata, vid->palette, BVID_PALETTE_SIZE);
|
||||||
|
else
|
||||||
|
av_log(s, AV_LOG_ERROR, "Failed to allocate palette side data\n");
|
||||||
|
|
||||||
av_freep(&vid->palette);
|
av_freep(&vid->palette);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user