summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-08-11 04:26:06 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-08-16 20:40:53 +0200
commitb384129c63c604d8087f72a880adfdc6c68ab9a0 (patch)
tree144966db5a167ee6f880111bea77f7c8743d5d5f /src/video_core
parentconfigure_graphics: Add GPU nvdec decoding as an option (diff)
downloadyuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.gz
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.bz2
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.lz
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.xz
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.tar.zst
yuzu-b384129c63c604d8087f72a880adfdc6c68ab9a0.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/command_classes/codecs/h264.cpp3
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);