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 | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
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;
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(-)