Browse Source

lavfi/movie: set pkt->stream_index for flushing.

Otherwise, the value of stream_index is kept from the last packet
read, which is not necessarily the stream that needs flushing.
tags/n1.0
Nicolas George 13 years ago
parent
commit
584acbf524
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/src_movie.c

+ 1
- 0
libavfilter/src_movie.c View File

@@ -498,6 +498,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
}
return AVERROR_EOF;
}
pkt->stream_index = movie->st[out_id].st->index;
/* packet is already ready for flushing */
} else {
ret = av_read_frame(movie->format_ctx, &movie->pkt0);


Loading…
Cancel
Save