summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/encode_lavc.c6
-rw-r--r--mpvcore/encode_lavc.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/mpvcore/encode_lavc.c b/mpvcore/encode_lavc.c
index 84d726cfdc..d2017a7f37 100644
--- a/mpvcore/encode_lavc.c
+++ b/mpvcore/encode_lavc.c
@@ -754,19 +754,19 @@ int encode_lavc_write_frame(struct encode_lavc_context *ctx, AVPacket *packet)
}
int encode_lavc_supports_pixfmt(struct encode_lavc_context *ctx,
- enum PixelFormat pix_fmt)
+ enum AVPixelFormat pix_fmt)
{
CHECK_FAIL(ctx, 0);
if (!ctx->vc)
return 0;
- if (pix_fmt == PIX_FMT_NONE)
+ if (pix_fmt == AV_PIX_FMT_NONE)
return 0;
if (!ctx->vc->pix_fmts)
return VFCAP_CSP_SUPPORTED;
else {
- const enum PixelFormat *p;
+ const enum AVPixelFormat *p;
for (p = ctx->vc->pix_fmts; *p >= 0; ++p) {
if (pix_fmt == *p)
return VFCAP_CSP_SUPPORTED;
diff --git a/mpvcore/encode_lavc.h b/mpvcore/encode_lavc.h
index f47825e1d7..15e0a5c7f2 100644
--- a/mpvcore/encode_lavc.h
+++ b/mpvcore/encode_lavc.h
@@ -79,7 +79,7 @@ struct encode_lavc_context {
AVStream *encode_lavc_alloc_stream(struct encode_lavc_context *ctx, enum AVMediaType mt);
void encode_lavc_write_stats(struct encode_lavc_context *ctx, AVStream *stream);
int encode_lavc_write_frame(struct encode_lavc_context *ctx, AVPacket *packet);
-int encode_lavc_supports_pixfmt(struct encode_lavc_context *ctx, enum PixelFormat format);
+int encode_lavc_supports_pixfmt(struct encode_lavc_context *ctx, enum AVPixelFormat format);
AVCodec *encode_lavc_get_codec(struct encode_lavc_context *ctx, AVStream *stream);
int encode_lavc_open_codec(struct encode_lavc_context *ctx, AVStream *stream);
int encode_lavc_available(struct encode_lavc_context *ctx);