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.
This commit is contained in:
parent
bb46b9a36f
commit
584acbf524
@ -498,6 +498,7 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
|
|||||||
}
|
}
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
}
|
}
|
||||||
|
pkt->stream_index = movie->st[out_id].st->index;
|
||||||
/* packet is already ready for flushing */
|
/* packet is already ready for flushing */
|
||||||
} else {
|
} else {
|
||||||
ret = av_read_frame(movie->format_ctx, &movie->pkt0);
|
ret = av_read_frame(movie->format_ctx, &movie->pkt0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user