Skip to content

Commit

Permalink
fix: Add missing limits header
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joeyparrish committed Oct 13, 2021
1 parent d02b960 commit efbca39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packager/media/formats/mp2t/program_map_table_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "packager/media/formats/mp2t/program_map_table_writer.h"

#include <algorithm>
#include <limits>

#include "packager/base/logging.h"
#include "packager/media/base/buffer_writer.h"
Expand Down
1 change: 1 addition & 0 deletions packager/media/formats/mp4/mp4_media_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "packager/media/formats/mp4/mp4_media_parser.h"

#include <algorithm>
#include <limits>

#include "packager/base/callback.h"
#include "packager/base/callback_helpers.h"
Expand Down

0 comments on commit efbca39

Please sign in to comment.