|
|
|
@@ -179,7 +179,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, |
|
|
|
} else { |
|
|
|
av_freep(&qt->pkt.data); |
|
|
|
av_init_packet(&qt->pkt); |
|
|
|
qt->pkt.data = av_malloc(alen + FF_INPUT_BUFFER_PADDING_SIZE); |
|
|
|
qt->pkt.data = av_realloc(NULL, alen + FF_INPUT_BUFFER_PADDING_SIZE); |
|
|
|
if (!qt->pkt.data) |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
qt->pkt.size = 0; |
|
|
|
@@ -213,7 +213,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, |
|
|
|
pkt->stream_index = st->index; |
|
|
|
if (qt->remaining > 0) { |
|
|
|
av_freep(&qt->pkt.data); |
|
|
|
qt->pkt.data = av_malloc(qt->remaining * qt->bytes_per_frame); |
|
|
|
qt->pkt.data = av_realloc(NULL, qt->remaining * qt->bytes_per_frame); |
|
|
|
if (!qt->pkt.data) { |
|
|
|
av_free_packet(pkt); |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
|