Mercurial > mplayer.hg
annotate version.sh @ 23978:ef6e50c3c172
Revert setting audio output channel count for FFmpeg
The FFmpeg API needs to be fixed before this can be done sanely.
ffdca wants the desired output channel count to be set in
avctx->channels. Unfortunately it also completely fails if the requested
number of channels is not available rather than returning a different
amount (if 6 channels are requested we'd probably rather use stereo than
fail completely).
ffvorbis ignores caller-set values in avctx->channels. It writes the
channel count there once during init. This means the caller can only
set the count before init because later there would be no indication
whether the channel count in avctx reflects real output.
ffwma requires the caller to supply the encoded channel count
in avctx->channels during init or it fails. So it is not possible to
set a different number of desired output channels there before init
either.
author | uau |
---|---|
date | Thu, 02 Aug 2007 21:54:14 +0000 |
parents | 007dd9c904d9 |
children | f5edea48bb66 |
rev | line source |
---|---|
420 | 1 #!/bin/sh |
2 | |
18759 | 3 test "$1" && extra="-$1" |
18595 | 4 |
19250
1ba1f19a30e9
Use LC_ALL instead of LANG since the former overrides the latter.
diego
parents:
19247
diff
changeset
|
5 svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` |
23561
007dd9c904d9
Port changes for older Subversion releases from FFmpeg.
diego
parents:
21928
diff
changeset
|
6 test $svn_revision || svn_revision=`cd "$1" && grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` |
007dd9c904d9
Port changes for older Subversion releases from FFmpeg.
diego
parents:
21928
diff
changeset
|
7 test $svn_revision || svn_revision=`cd "$1" && sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` |
18791
72e6908f0347
Produce correct version string even when not run in a Subversion working copy.
diego
parents:
18784
diff
changeset
|
8 test $svn_revision || svn_revision=UNKNOWN |
72e6908f0347
Produce correct version string even when not run in a Subversion working copy.
diego
parents:
18784
diff
changeset
|
9 |
18784
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
10 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\"" |
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
11 OLD_REVISION=`cat version.h 2> /dev/null` |
21928 | 12 TITLE="#define MP_TITLE \"MPlayer dev-SVN-r${svn_revision}${extra} (C) 2000-2007 MPlayer Team\"" |
18784
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
13 |
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
14 # Update version.h only on revision changes to avoid spurious rebuilds |
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
15 if test "$NEW_REVISION" != "$OLD_REVISION"; then |
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
16 echo "$NEW_REVISION" > version.h |
21764 | 17 echo "$TITLE" >> version.h |
18784
b5777da79b53
Adapt FFmpeg version.sh that only recreates version.h if its content changed.
diego
parents:
18759
diff
changeset
|
18 fi |