Skip to content

Commit 0040d7e

Browse files
committed
lavfi/src_movie: set pkt_timebase
Fix “Could not update timestamps for skipped samples” warning and associated misfeature.
1 parent 2229b74 commit 0040d7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavfilter/src_movie.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st, int dec_threads)
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);

0 commit comments

Comments
 (0)