summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-10-01 22:42:37 -0300
committerJames Almer <jamrial@gmail.com>2020-10-01 22:42:37 -0300
commitbd52b41444cd662259cf69a2cda0478d1d524984 (patch)
tree9ae41491cfbdc17589397f359b6104ce410eedd8 /libavcodec
parent13c74291ecfb9a080b37c796b1e10ccd3e5b413e (diff)
avcodec/libvpxenc: add missing FF_API_ERROR_FRAME check
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libvpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 3d5e6c12e3..a7c76eb835 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -1123,7 +1123,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (cx_frame->have_sse) {
int i;
/* Beware of the Y/U/V/all order! */
-#if FF_API_CODED_FRAME
+#if FF_API_CODED_FRAME && FF_API_ERROR_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->error[0] = cx_frame->sse[1];
avctx->coded_frame->error[1] = cx_frame->sse[2];