diff options
| author | 2021-08-10 22:26:06 -0400 | |
|---|---|---|
| committer | 2021-08-16 14:40:53 -0400 | |
| commit | b384129c63c604d8087f72a880adfdc6c68ab9a0 (patch) | |
| tree | 144966db5a167ee6f880111bea77f7c8743d5d5f /src | |
| parent | configure_graphics: Add GPU nvdec decoding as an option (diff) | |
| download | yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.gz yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.xz yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.zip | |
h264: Lower max_num_ref_frames
GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/command_classes/codecs/h264.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/command_classes/codecs/h264.cpp b/src/video_core/command_classes/codecs/h264.cpp index 5fb6d45ee..51ee14c13 100644 --- a/src/video_core/command_classes/codecs/h264.cpp +++ b/src/video_core/command_classes/codecs/h264.cpp | |||
| @@ -95,7 +95,8 @@ const std::vector<u8>& H264::ComposeFrameHeader(const NvdecCommon::NvdecRegister | |||
| 95 | const s32 pic_height = context.h264_parameter_set.frame_height_in_map_units / | 95 | const s32 pic_height = context.h264_parameter_set.frame_height_in_map_units / |
| 96 | (context.h264_parameter_set.frame_mbs_only_flag ? 1 : 2); | 96 | (context.h264_parameter_set.frame_mbs_only_flag ? 1 : 2); |
| 97 | 97 | ||
| 98 | writer.WriteUe(16); | 98 | // TODO (ameerj): Where do we get this number, it seems to be particular for each stream |
| 99 | writer.WriteUe(6); // Max number of reference frames | ||
| 99 | writer.WriteBit(false); | 100 | writer.WriteBit(false); |
| 100 | writer.WriteUe(context.h264_parameter_set.pic_width_in_mbs - 1); | 101 | writer.WriteUe(context.h264_parameter_set.pic_width_in_mbs - 1); |
| 101 | writer.WriteUe(pic_height - 1); | 102 | writer.WriteUe(pic_height - 1); |