mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavfi/vf_fps: set frame duration
This commit is contained in:
parent
044d70736e
commit
502892d706
@ -291,6 +291,7 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin
|
|||||||
// Make sure Closed Captions will not be duplicated
|
// Make sure Closed Captions will not be duplicated
|
||||||
av_frame_remove_side_data(s->frames[0], AV_FRAME_DATA_A53_CC);
|
av_frame_remove_side_data(s->frames[0], AV_FRAME_DATA_A53_CC);
|
||||||
frame->pts = s->next_pts++;
|
frame->pts = s->next_pts++;
|
||||||
|
frame->duration = 1;
|
||||||
|
|
||||||
av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
|
av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
|
||||||
s->frames[0]->pts, frame->pts);
|
s->frames[0]->pts, frame->pts);
|
||||||
|
Loading…
Reference in New Issue
Block a user