Showing the changes to libavfilter (2 of 2 files). Show all
Unified · Split
| @@ -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); |
| @@ -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++; |