avfilter/src_movie: Fix handling of packet size for video
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Jun 2013 11:32:55 +0000 (13:32 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Jun 2013 11:46:19 +0000 (13:46 +0200)
See Ticket2556

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/src_movie.c

index 1c4fd5a..dfb4289 100644 (file)
@@ -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;