mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/movenchint: revert "Use av_reallocp() where suitable"
reverts movenchin part of 5626f994f273af80fb100d4743b963304de9e05c The change left the fields in an inconsistent state Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
361bc70731
commit
091ba02cc8
@ -104,9 +104,12 @@ static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size,
|
||||
if (size <= 14)
|
||||
return;
|
||||
if (!queue->samples || queue->len >= queue->size) {
|
||||
HintSample *samples;
|
||||
queue->size += 10;
|
||||
if (av_reallocp(&queue->samples, sizeof(*queue->samples) * queue->size) < 0)
|
||||
samples = av_realloc(queue->samples, sizeof(HintSample)*queue->size);
|
||||
if (!samples)
|
||||
return;
|
||||
queue->samples = samples;
|
||||
}
|
||||
queue->samples[queue->len].data = data;
|
||||
queue->samples[queue->len].size = size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user