| @@ -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); |