mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/movie: free packet on decoder error
Prevents infinite loop, see Ticket2556 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
876e960d90
commit
015cc3239a
@ -514,6 +514,9 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
|
||||
if (ret < 0) {
|
||||
av_log(ctx, AV_LOG_WARNING, "Decode error: %s\n", av_err2str(ret));
|
||||
av_frame_free(&movie->frame);
|
||||
av_free_packet(&movie->pkt0);
|
||||
movie->pkt0.size = 0;
|
||||
movie->pkt0.data = NULL;
|
||||
return 0;
|
||||
}
|
||||
if (!ret)
|
||||
|
Loading…
Reference in New Issue
Block a user