media/update-libjpeg.sh
author Bryce Van Dyk <bvandyk@mozilla.com>
Tue, 19 Jan 2016 11:43:49 +1300
changeset 288503 4261e08ba51aa5241a05d5a6da8c7557e870ef47
parent 287584 d8190cbce7b0b188ec678da1a1ec1a190c5da636
child 302658 4e6dd91cd5823834a7da0394367609a1640dfb11
permissions -rwxr-xr-x
Bug 657791 - Update WebM demuxer to consider cue-less WebMs seekable. r=jya It appears that the work to seek in WebMs that do not have cues has already been done, however this functionality was gated by the IsSeekable() function still returning that such WebMs were not seekable. This updates that function so that WebMs without cues are now considered seekable. Tests are also updated to reflect this.

#!/bin/sh

set -v -e -x

if [ $# -lt 1 ]; then
  echo "Usage: update-libjpeg.sh /path/to/libjpeg-turbo/ [tag]"
  exit 1
fi

srcdir=`realpath $(dirname $0)`
topsrcdir=${srcdir}/..
rm -rf $srcdir/libjpeg

repo=$1
tag=${2-HEAD}

(cd $repo; git archive --prefix=media/libjpeg/ $tag) | (cd $srcdir/..; tar xf -)

cd $srcdir/libjpeg
cp win/jsimdcfg.inc simd/

revert_files="jconfig.h jconfigint.h moz.build Makefile.in MOZCHANGES mozilla.diff simd/jsimdcfg.inc"
if test -d ${topsrcdir}/.hg; then
    hg revert --no-backup $revert_files
elif test -d ${topsrcdir}/.git; then
    git checkout HEAD -- $revert_files
fi

patch -p0 -i mozilla.diff
patch -p0 -i 1050342.diff