summaryrefslogtreecommitdiff
path: root/libavformat/bethsoftvid.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-27 23:20:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-10-27 23:20:21 +0100
commit0894b9405c0cdb7cbf1cd80092a4d9f3766b4e66 (patch)
tree8d49f42b06fb1bc817184ea01e72f1a4d09153bd /libavformat/bethsoftvid.c
parent5ee6527c4386c76a0aae1b07842d6676ee1e91d1 (diff)
downloadffmpeg-0894b9405c0cdb7cbf1cd80092a4d9f3766b4e66.tar.gz
avformat/bethsoftvid: print error in case the side date failed to be allocated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bethsoftvid.c')
-rw-r--r--libavformat/bethsoftvid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index c98ff14df1..05f5c4f822 100644
--- a/libavformat/bethsoftvid.c
+++ b/libavformat/bethsoftvid.c
@@ -194,6 +194,9 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt,
BVID_PALETTE_SIZE);
if (pdata)
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);
}