[FFmpeg-cvslog] avformat/bethsoftvid: print error in case the side date failed to be allocated
Michael Niedermayer
git at videolan.org
Mon Oct 27 23:33:11 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 27 23:20:21 2014 +0100| [0894b9405c0cdb7cbf1cd80092a4d9f3766b4e66] | committer: Michael Niedermayer
avformat/bethsoftvid: print error in case the side date failed to be allocated
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0894b9405c0cdb7cbf1cd80092a4d9f3766b4e66
---
libavformat/bethsoftvid.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index c98ff14..05f5c4f 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);
}
More information about the ffmpeg-cvslog
mailing list