projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee6527
)
avformat/bethsoftvid: print error in case the side date failed to be allocated
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 27 Oct 2014 22:20:21 +0000
(23:20 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 27 Oct 2014 22:20:21 +0000
(23:20 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bethsoftvid.c
patch
|
blob
|
history
diff --git
a/libavformat/bethsoftvid.c
b/libavformat/bethsoftvid.c
index
c98ff14
..
05f5c4f
100644
(file)
--- 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);
}