From efbca399c0507c6d8a24e880a1e0eb3fc737e1db Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 13 Oct 2021 10:56:06 -0700 Subject: [PATCH] fix: Add missing limits header In many places, we used std::numeric_limits without including the proper header. This would build on some Linux distributions, but not others. This adds the missing includes, fixing the build on Fedora, among other distros. Change-Id: I63e9e37e5973fe23bbdf9868552db51062b1dae4 --- packager/media/formats/mp2t/program_map_table_writer.cc | 1 + packager/media/formats/mp4/mp4_media_parser.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/packager/media/formats/mp2t/program_map_table_writer.cc b/packager/media/formats/mp2t/program_map_table_writer.cc index 2326121d53..11d689d991 100644 --- a/packager/media/formats/mp2t/program_map_table_writer.cc +++ b/packager/media/formats/mp2t/program_map_table_writer.cc @@ -7,6 +7,7 @@ #include "packager/media/formats/mp2t/program_map_table_writer.h" #include +#include #include "packager/base/logging.h" #include "packager/media/base/buffer_writer.h" diff --git a/packager/media/formats/mp4/mp4_media_parser.cc b/packager/media/formats/mp4/mp4_media_parser.cc index 5f949871c7..a7fc1f8a20 100644 --- a/packager/media/formats/mp4/mp4_media_parser.cc +++ b/packager/media/formats/mp4/mp4_media_parser.cc @@ -5,6 +5,7 @@ #include "packager/media/formats/mp4/mp4_media_parser.h" #include +#include #include "packager/base/callback.h" #include "packager/base/callback_helpers.h"