History

lavfi/src_movie: set pkt_timebase

Fix “Could not update timestamps for skipped samples” warning and associated misfeature.

Nicolas George committed 1 year ago

Commit 0040d7e1 parent 2229b741 file · +1 −0Browse files

Unified · Split

libavfilter/src_movie.c+1−0
@@ -227,6 +227,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st, int dec_threads) · 226 unmodified lines
227227 ret = avcodec_parameters_to_context(st->codec_ctx, st->st->codecpar);
228228 if (ret < 0)
229229 return ret;
230+ st->codec_ctx->pkt_timebase = st->st->time_base;
230231
231232 if (!dec_threads)
232233 dec_threads = ff_filter_get_nb_threads(ctx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t