Browse Source

avcodec/libvpxenc: add missing FF_API_ERROR_FRAME check

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 5 years ago
parent
commit
bd52b41444
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvpxenc.c

+ 1
- 1
libavcodec/libvpxenc.c View File

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


Loading…
Cancel
Save