Fix “Could not update timestamps for skipped samples” warning and associated misfeature.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -227,6 +227,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st, int dec_threads) · 226 unmodified lines | ||
| 227 | 227 | ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar); |
| 228 | 228 | if (ret < 0) |
| 229 | 229 | return ret; |
| 230 | + st->codec_ctx->pkt_timebase = st->st->time_base; | |
| 230 | 231 | |
| 231 | 232 | if (!dec_threads) |
| 232 | 233 | dec_threads = ff_filter_get_nb_threads(ctx); |