From 17cc51df6611a6a619d54258b3693e7ab9bc01dc Mon Sep 17 00:00:00 2001 From: Nick Exton <10857740+nickexton@users.noreply.github.com> Date: Thu, 18 Jan 2024 15:42:57 +1100 Subject: [PATCH] Fix default value for max NAL unit size for H.265 (#17) Was using the H.264 size. --- CHANGELOG.md | 4 ++++ src/nal_transport.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a176074..e30837c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## unreleased +### Fixed + + - Fix the `SmolRTSP_NalTransportConfig_default` value for H.265 ([PR #17](https://github.com/OpenIPC/smolrtsp/pull/17)). + ## 0.1.3 - 2023-03-12 ### Fixed diff --git a/src/nal_transport.c b/src/nal_transport.c index 8271773..8ac25a7 100644 --- a/src/nal_transport.c +++ b/src/nal_transport.c @@ -18,7 +18,7 @@ static int send_fu( SmolRTSP_NalTransportConfig SmolRTSP_NalTransportConfig_default(void) { return (SmolRTSP_NalTransportConfig){ .max_h264_nalu_size = SMOLRTSP_MAX_H264_NALU_SIZE, - .max_h265_nalu_size = SMOLRTSP_MAX_H264_NALU_SIZE, + .max_h265_nalu_size = SMOLRTSP_MAX_H265_NALU_SIZE, }; }