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
This commit is contained in:
Joey Parrish 2021-10-13 10:56:06 -07:00
parent d02b960452
commit efbca399c0
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include "packager/media/formats/mp2t/program_map_table_writer.h" #include "packager/media/formats/mp2t/program_map_table_writer.h"
#include <algorithm> #include <algorithm>
#include <limits>
#include "packager/base/logging.h" #include "packager/base/logging.h"
#include "packager/media/base/buffer_writer.h" #include "packager/media/base/buffer_writer.h"

View File

@ -5,6 +5,7 @@
#include "packager/media/formats/mp4/mp4_media_parser.h" #include "packager/media/formats/mp4/mp4_media_parser.h"
#include <algorithm> #include <algorithm>
#include <limits>
#include "packager/base/callback.h" #include "packager/base/callback.h"
#include "packager/base/callback_helpers.h" #include "packager/base/callback_helpers.h"