diff mbox series

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

Message ID 20200910013941.14444-1-andreas.rheinhardt@gmail.com
State Accepted
Commit c97d91ecaeb40eefde3909143f36d323b7498e40
Headers show
Series [FFmpeg-devel,1/3] avfilter/src_movie: Remove unneeded resetting of AVPacket
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 10, 2020, 1:39 a.m. UTC
av_read_frame() already returns clean packets on error.

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

Patch

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;