mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '1af78b865b66acb8020c54262f12aa41ad47e05c'
* commit '1af78b865b66acb8020c54262f12aa41ad47e05c': rtpdec_qt: Add an accidentally removed allocation return value check Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
47c5c942f8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user