diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-26 16:34:59 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-26 23:13:50 +0300 |
commit | 1af78b865b66acb8020c54262f12aa41ad47e05c (patch) | |
tree | bc97645f41edf4d31c4a7314380c562de081c9c5 /libavformat/rtpdec_qt.c | |
parent | 705b748e8d8612385c96428ae36ed0d42a170d93 (diff) | |
download | ffmpeg-1af78b865b66acb8020c54262f12aa41ad47e05c.tar.gz |
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>
Diffstat (limited to 'libavformat/rtpdec_qt.c')
-rw-r--r-- | libavformat/rtpdec_qt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtpdec_qt.c b/libavformat/rtpdec_qt.c index 146002aefa..8898f050c5 100644 --- a/libavformat/rtpdec_qt.c +++ b/libavformat/rtpdec_qt.c @@ -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; } |