Skip to content
Snippets Groups Projects
Commit d1f3e475 authored by Steven Liu's avatar Steven Liu
Browse files

avformat/test/fifo_muxer: add check for FailingMuxerPacketData alloc


CID: 1396257

Reviewed-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: default avatarSteven Liu <lq@chinaffmpeg.org>
parent 2d208aaa
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,9 @@ static int prepare_packet(AVPacket *pkt,const FailingMuxerPacketData *pkt_data,
{
int ret;
FailingMuxerPacketData *data = av_malloc(sizeof(*data));
if (!data) {
return AVERROR(ENOMEM);
}
memcpy(data, pkt_data, sizeof(FailingMuxerPacketData));
ret = av_packet_from_data(pkt, (uint8_t*) data, sizeof(*data));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment