Commit 1af78b86 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec_qt: Add an accidentally removed allocation return value check

This check was mistakenly removed in 5626f994.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 705b748e
......@@ -180,6 +180,8 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
av_freep(&qt->pkt.data);
av_init_packet(&qt->pkt);
qt->pkt.data = av_malloc(alen + FF_INPUT_BUFFER_PADDING_SIZE);
if (!qt->pkt.data)
return AVERROR(ENOMEM);
qt->pkt.size = 0;
qt->timestamp = *timestamp;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment