Browse Source

avformat/bethsoftvid: print error in case the side date failed to be allocated

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
0894b9405c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/bethsoftvid.c

+ 3
- 0
libavformat/bethsoftvid.c View File

@@ -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);
}



Loading…
Cancel
Save