Merge upstream 4e878f7f64d7a9f06ba076d0a2611d7f8b33d793 in to master
75976ae...
by
Michael Niedermayer <email address hidden>
avformat/oggdec: Fix integer overflow with invalid pts
If negative pts are possible for some codecs in ogg then the code needs to be
changed to use signed values.
Signed-off-by: Michael Niedermayer <email address hidden>
(cherry picked from commit a867b948ed35b3f5b72ee714232c21d5f591e7aa)
4e878f7...
by
Chris Cunningham <email address hidden>
libavformat/matroskadec: fix unsigned overflow to improve seeking
When seeking a file where codec delay is greater than 0, the timecode
can become negative after offsetting by the codec delay. Failing to cast
to a signed int64 will cause the check against skip_to_timecode to evaluate
true for these negative values. This breaks the "skip_to" seek mechanism.
Signed-off-by: Michael Niedermayer <email address hidden>
(cherry picked from commit d59820f6fec3fd112436fb7712e4f9d6d768b664)
Make ffmpeg a static_library in non-component builds
In non-component builds ffmpeg must be a static library because
otherwise its .obj files are linked directly into chrome.dll, causing
100s of KB of unneeded global variables and code to be pulled in, even
in official builds.
The immediate affect of this is for ff_cos_65536_fixed (and its
mip-maps), totaling almost 128 KiB of global variables to no longer be
linked in. This change also enables future changes that will keep many
other globals and code out of chrome.dll.