From e1f50682e91a1e244bab6c454c771cf90d0317a8 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Sun, 10 Nov 2024 11:21:36 +0200 Subject: [PATCH] small touch (last one) --- src/core/libraries/videodec/videodec_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/libraries/videodec/videodec_impl.cpp b/src/core/libraries/videodec/videodec_impl.cpp index c7b8f936c5..a244c4a611 100644 --- a/src/core/libraries/videodec/videodec_impl.cpp +++ b/src/core/libraries/videodec/videodec_impl.cpp @@ -136,6 +136,7 @@ s32 VdecDecoder::Flush(OrbisVideodecFrameBuffer& pFrameBufferInOut, return ORBIS_VIDEODEC_ERROR_API_FAIL; } + int frameCount = 0; while (true) { int ret = avcodec_receive_frame(mCodecContext, frame); if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) { @@ -172,6 +173,10 @@ s32 VdecDecoder::Flush(OrbisVideodecFrameBuffer& pFrameBufferInOut, pPictureInfoOut.codec.avc.frameCropBottomOffset = u32(frame->crop_bottom + (height - frame->height)); // TODO maybe more avc? + + if (frameCount > 1) { + LOG_WARNING(Lib_Videodec, "We have more than 1 frame"); + } } av_frame_free(&frame);