Browse Source

avfilter/src_movie: Remove unneeded resetting of AVPacket

av_read_frame() already returns clean packets on error.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
c97d91ecae
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavfilter/src_movie.c

+ 0
- 1
libavfilter/src_movie.c View File

@@ -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;


Loading…
Cancel
Save