mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
small touch (last one)
This commit is contained in:
parent
2328b712d9
commit
e1f50682e9
@ -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…
Reference in New Issue
Block a user