aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/codecs/h264.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/host1x/codecs/h264.cpp')
-rw-r--r--src/video_core/host1x/codecs/h264.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/host1x/codecs/h264.cpp b/src/video_core/host1x/codecs/h264.cpp
index f439ac3828..e3a6f5d182 100644
--- a/src/video_core/host1x/codecs/h264.cpp
+++ b/src/video_core/host1x/codecs/h264.cpp
@@ -52,6 +52,10 @@ bool H264::IsInterlaced() {
std::span<const u8> H264::ComposeFrame() {
host1x.gmmu_manager.ReadBlock(regs.picture_info_offset.Address(), &current_context, sizeof(H264DecoderContext));
+ const auto& params = current_context.h264_parameter_set;
+ SetFrameDimensions(static_cast<s32>(params.pic_width_in_mbs) * 16,
+ static_cast<s32>(params.frame_height_in_mbs) * 16);
+
const s64 frame_number = current_context.h264_parameter_set.frame_number.Value();
if (!is_first_frame && frame_number != 0) {
frame_scratch.resize_destructive(current_context.stream_len);