Re: [FFmpeg-devel] [PATCH] avformat/mov: make better use of av_fast_realloc and fix spurious ENOMEM

2020-10-17 Thread Zhao Zhili
Ping for review. > On Sep 24, 2020, at 1:28 AM, Zhao Zhili wrote: > > If sc->ctts_allocated_size is larger than the new buffer size, > av_fast_realloc() will return NULL. Since sc->ctts_data is freed, > ctts_allocated_size should be reset to zero. It's better to avoid > free sc->ctts_data at the

[FFmpeg-devel] [PATCH] avformat/mov: make better use of av_fast_realloc and fix spurious ENOMEM

2020-09-23 Thread Zhao Zhili
If sc->ctts_allocated_size is larger than the new buffer size, av_fast_realloc() will return NULL. Since sc->ctts_data is freed, ctts_allocated_size should be reset to zero. It's better to avoid free sc->ctts_data at the first place to make better use of av_fast_realloc(). --- libavformat/mov.c |