[FFmpeg-devel] [PATCH 1/3] avfilter/src_movie: Remove unneeded resetting of AVPacket

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Thu Sep 10 04:39:39 EEST 2020


av_read_frame() already returns clean packets on error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavfilter/src_movie.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 6e210d1df0..b9b940684d 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -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;
-- 
2.20.1



More information about the ffmpeg-devel mailing list