diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-09-11 23:11:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 23:11:32 +0200 |
commit | be4e1929033aff005472163164ab0ccc80d81c19 (patch) | |
tree | b3b3f62a3b3e8e3c329ee35411d8d18e20a835ab /src/video_core/command_classes/codecs/h264.cpp | |
parent | Merge pull request #6901 from ameerj/vk-clear-bits (diff) | |
parent | h264: Lower max_num_ref_frames (diff) | |
download | yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.gz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.bz2 yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.lz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.xz yuzu-be4e1929033aff005472163164ab0ccc80d81c19.tar.zst yuzu-be4e1929033aff005472163164ab0ccc80d81c19.zip |
Diffstat (limited to 'src/video_core/command_classes/codecs/h264.cpp')
-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 const s32 pic_height = context.h264_parameter_set.frame_height_in_map_units / (context.h264_parameter_set.frame_mbs_only_flag ? 1 : 2); - writer.WriteUe(16); + // TODO (ameerj): Where do we get this number, it seems to be particular for each stream + writer.WriteUe(6); // Max number of reference frames writer.WriteBit(false); writer.WriteUe(context.h264_parameter_set.pic_width_in_mbs - 1); writer.WriteUe(pic_height - 1); |