1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/src_movie: Fix handling of packet size for video

See Ticket2556

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-26 13:32:55 +02:00
parent 87bc648930
commit ee97982408

View 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;