[FFmpeg-devel] [PATCH 2/4] avfilter/vf_reverse: check pts_size instead of frames_size when reallocating
Paul B Mahol
onemda at gmail.com
Tue Jul 21 17:05:07 CEST 2015
Fixes crash of FreeBSD.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavfilter/vf_reverse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_reverse.c b/libavfilter/vf_reverse.c
index a555427..63412fe 100644
--- a/libavfilter/vf_reverse.c
+++ b/libavfilter/vf_reverse.c
@@ -73,7 +73,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFilterContext *ctx = inlink->dst;
ReverseContext *s = ctx->priv;
- if (s->nb_frames + 1 > s->frames_size / sizeof(*(s->frames))) {
+ if (s->nb_frames + 1 > s->pts_size / sizeof(*(s->pts))) {
void *ptr;
ptr = av_fast_realloc(s->pts, &s->pts_size, s->pts_size * 2);
--
1.7.11.2
More information about the ffmpeg-devel
mailing list