[AppleScript] 纯文本查看 复制代码 479 ost->sws_ctx = sws_getContext(c->width, c->height,
480 AV_PIX_FMT_YUV420P,
481 c->width, c->height,
482 c->pix_fmt,
483 SCALE_FLAGS, NULL, NULL, NULL);
484 if (!ost->sws_ctx) {
485 fprintf(stderr,
486 "Could not initialize the conversion context\n");
487 exit(1);
488 }
489 }
490 fill_yuv_image(ost->tmp_frame, ost->next_pts, c->width, c->height);
491 sws_scale(ost->sws_ctx, (const uint8_t * const *) ost->tmp_frame->data,
492 ost->tmp_frame->linesize, 0, c->height, ost->frame->data,
493 ost->frame->linesize); |