mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
screenshot.c:60:5: error: implicit declaration of function 'avcodec_free_frame' is invalid in C99 [-Werror,-Wimplicit-function-declaration] avcodec_free_frame(&ctx->pic); ^ screenshot.c:72:20: error: implicit declaration of function 'avcodec_alloc_frame' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ctx->pic = avcodec_alloc_frame(); ^ screenshot.c:97:22: error: use of undeclared identifier 'PIX_FMT_RGB24'; did you mean 'AV_PIX_FMT_RGB24'? avctx->pix_fmt = PIX_FMT_RGB24; ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ screenshot.c:113:5: error: implicit declaration of function 'avcodec_get_frame_defaults' is invalid in C99 [-Werror,-Wimplicit-function-declaration] avcodec_get_frame_defaults(pic); ^ screenshot.c:118:16: error: implicit declaration of function 'avcodec_encode_video' is invalid in C99 [-Werror,-Wimplicit-function-declaration] int size = avcodec_encode_video(avctx, outbuffer, outbuffer_size, pic); ^ PR: 214896 Reported by: jbeich Reviewed by: jbeich, junovitch (mentor) Approved by: jbeich, junovitch (mentor)
15 lines
672 B
C
15 lines
672 B
C
--- libmpcodecs/vf_halfpack.c.orig 2013-07-09 16:33:16 UTC
|
|
+++ libmpcodecs/vf_halfpack.c
|
|
@@ -198,9 +198,9 @@ static int config(struct vf_instance *vf
|
|
sws_freeContext(vf->priv->ctx);
|
|
// get unscaled 422p -> yuy2 conversion
|
|
vf->priv->ctx =
|
|
- sws_getContext(width, height / 2, PIX_FMT_YUV422P,
|
|
- width, height / 2, PIX_FMT_YUYV422,
|
|
- SWS_POINT | SWS_PRINT_INFO | get_sws_cpuflags(),
|
|
+ sws_getContext(width, height / 2, AV_PIX_FMT_YUV422P,
|
|
+ width, height / 2, AV_PIX_FMT_YUYV422,
|
|
+ SWS_POINT | SWS_PRINT_INFO,
|
|
NULL, NULL, NULL);
|
|
}
|
|
/* FIXME - also support UYVY output? */
|