av_read_frame() already returns clean packets on error.
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".