From ee97982408c83766a3dcb235a673761da629cf99 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 26 Jun 2013 13:32:55 +0200 Subject: [PATCH] avfilter/src_movie: Fix handling of packet size for video See Ticket2556 Signed-off-by: Michael Niedermayer --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 1c4fd5ac63..dfb4289f3c 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -519,7 +519,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) movie->pkt.data = NULL; return 0; } - if (!ret) + if (!ret || st->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) ret = pkt->size; pkt->data += ret;