From 6231f683af03d967eeb1266272beae208abb919f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 5 Apr 2021 18:13:23 +0200 Subject: [PATCH] Fix compilation error for old decoding API Commits cb9c42bdcb198b0e3ebed893e00257b95f4dcedb and 441d3fb119ce05287e94b0ae0befbb2e75173688 updated the code only for the new decoding API. --- app/src/decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/decoder.c b/app/src/decoder.c index 7da959c6..3408138c 100644 --- a/app/src/decoder.c +++ b/app/src/decoder.c @@ -61,7 +61,7 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) { #else int got_picture; int len = avcodec_decode_video2(decoder->codec_ctx, - decoder->video_buffer->decoding_frame, + decoder->video_buffer->producer_frame, &got_picture, packet); if (len < 0) { @@ -69,7 +69,7 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) { return false; } if (got_picture) { - push_frame(decoder); + video_buffer_producer_offer_frame(decoder->video_buffer); } #endif return true;