mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
small touch (last one)
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / windows-qt (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / macos-qt (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-qt (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / windows-qt (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / macos-qt (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-qt (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
This commit is contained in:
parent
2328b712d9
commit
e1f50682e9
1 changed files with 5 additions and 0 deletions
|
@ -136,6 +136,7 @@ s32 VdecDecoder::Flush(OrbisVideodecFrameBuffer& pFrameBufferInOut,
|
||||||
return ORBIS_VIDEODEC_ERROR_API_FAIL;
|
return ORBIS_VIDEODEC_ERROR_API_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int frameCount = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
int ret = avcodec_receive_frame(mCodecContext, frame);
|
int ret = avcodec_receive_frame(mCodecContext, frame);
|
||||||
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
|
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
|
||||||
|
@ -172,6 +173,10 @@ s32 VdecDecoder::Flush(OrbisVideodecFrameBuffer& pFrameBufferInOut,
|
||||||
pPictureInfoOut.codec.avc.frameCropBottomOffset =
|
pPictureInfoOut.codec.avc.frameCropBottomOffset =
|
||||||
u32(frame->crop_bottom + (height - frame->height));
|
u32(frame->crop_bottom + (height - frame->height));
|
||||||
// TODO maybe more avc?
|
// TODO maybe more avc?
|
||||||
|
|
||||||
|
if (frameCount > 1) {
|
||||||
|
LOG_WARNING(Lib_Videodec, "We have more than 1 frame");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
av_frame_free(&frame);
|
av_frame_free(&frame);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue