History

avfilter/avf_a3dscope,avf_showcwt: set video frame duration

Paul B Mahol committed 3 years ago

Commit 6b8adbf1 parent 2cee6222 files · +2 −0Browse files

Showing the changes to libavfilter (2 of 2 files). Show all

Unified · Split

2 files
  1. libavfilter/avf_a3dscope.c +1 −0
  2. libavfilter/avf_showcwt.c +1 −0
libavfilter/avf_a3dscope.c+1−0
@@ -243,6 +243,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 242 unmodified lines
243 for (int y = 0; y < outlink->h; y++)243 for (int y = 0; y < outlink->h; y++)
244 memset(out->data[0] + y * out->linesize[0], 0, outlink->w * 4);244 memset(out->data[0] + y * out->linesize[0], 0, outlink->w * 4);
245 out->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);245 out->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
246 out->duration = 1;
246 247
247 projection_matrix(s->fov, half_width / half_height, 0.1f, 1000000.f, s->projection_matrix);248 projection_matrix(s->fov, half_width / half_height, 0.1f, 1000000.f, s->projection_matrix);
248 view_matrix(s->eye, s->zoom, s->roll, s->pitch, s->yaw, s->view_matrix);249 view_matrix(s->eye, s->zoom, s->roll, s->pitch, s->yaw, s->view_matrix);
libavfilter/avf_showcwt.c+1−0
@@ -869,6 +869,7 @@ static int output_frame(AVFilterContext *ctx) · 868 unmodified lines
869 int64_t pts_offset = s->new_frame ? 0LL : av_rescale(s->ihop_index, s->hop_size, s->ihop_size);869 int64_t pts_offset = s->new_frame ? 0LL : av_rescale(s->ihop_index, s->hop_size, s->ihop_size);
870 870
871 s->outpicref->pts = av_rescale_q(s->in_pts + pts_offset, inlink->time_base, outlink->time_base);871 s->outpicref->pts = av_rescale_q(s->in_pts + pts_offset, inlink->time_base, outlink->time_base);
872 s->outpicref->duration = 1;
872 }873 }
873 874
874 s->ihop_index++;875 s->ihop_index++;

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