av_read_frame() already returns clean packets on error.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -495,7 +495,6 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) · 494 unmodified lines | ||
| 495 | 495 | } else { |
| 496 | 496 | ret = av_read_frame(movie->format_ctx, &movie->pkt0); |
| 497 | 497 | if (ret < 0) { |
| 498 | − av_init_packet(&movie->pkt0); /* ready for flushing */ | |
| 499 | 498 | *pkt = movie->pkt0; |
| 500 | 499 | if (ret == AVERROR_EOF) { |
| 501 | 500 | movie->eof = 1; |