You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rtpdec_qt: Add an accidentally removed allocation return value check
This check was mistakenly removed in 5626f994f
.
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user