mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/libvpxenc: add missing FF_API_ERROR_FRAME check
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
13c74291ec
commit
bd52b41444
@ -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…
Reference in New Issue
Block a user