lavfi/src_movie: set pkt_timebase
Fix “Could not update timestamps for skipped samples” warning and associated misfeature.
This commit is contained in:
parent
2229b74127
commit
0040d7e608
1 changed files with 1 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st, int dec_threads)
|
|||
ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
st->codec_ctx->pkt_timebase = st->st->time_base;
|
||||
|
||||
if (!dec_threads)
|
||||
dec_threads = ff_filter_get_nb_threads(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue