[FFmpeg-cvslog] avcodec/libvpxenc: add missing FF_API_ERROR_FRAME check

James Almer git at videolan.org
Fri Oct 2 06:36:18 EEST 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Oct  1 22:42:37 2020 -0300| [bd52b41444cd662259cf69a2cda0478d1d524984] | committer: James Almer

avcodec/libvpxenc: add missing FF_API_ERROR_FRAME check

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd52b41444cd662259cf69a2cda0478d1d524984
---

 libavcodec/libvpxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];



More information about the ffmpeg-cvslog mailing list