]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/src_movie: Remove unneeded resetting of AVPacket
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 10 Sep 2020 00:13:51 +0000 (02:13 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 10 Sep 2020 20:25:12 +0000 (22:25 +0200)
av_read_frame() already returns clean packets on error.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/src_movie.c

index 6e210d1df0776f8e1b8d08b8510914d6912b525d..b9b940684de7cb981c542796bcfb74e9fca62b97 100644 (file)
@@ -495,7 +495,6 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
         } else {
             ret = av_read_frame(movie->format_ctx, &movie->pkt0);
             if (ret < 0) {
-                av_init_packet(&movie->pkt0); /* ready for flushing */
                 *pkt = movie->pkt0;
                 if (ret == AVERROR_EOF) {
                     movie->eof = 1;