~ubuntu-branches/ubuntu/karmic/mplayer/karmic

« back to all changes in this revision

Viewing changes to TOOLS/midentify.sh

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-06 23:01:52 UTC
  • mfrom: (0.1.6 squeeze) (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090606230152-qxn13xfnq65nz088
Tags: 2:1.0~rc3+svn20090426-1ubuntu1
* Switch to debian packaging for the mplayer package
* New upstream release, LP: #336697, #260918, #246675, #243453, #74282
* Fixes security issues: CVE-2008-5616, LP: #308939
* many flv fixes LP: #73271, #347021
* Build and install mencoder
* Bump epoch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# This is a wrapper around the -identify functionality.
 
4
# It is supposed to escape the output properly, so it can be easily
 
5
# used in shellscripts by 'eval'ing the output of this script.
 
6
#
 
7
# Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
 
8
# Licensed under GNU GPL.
 
9
 
 
10
if [ -z "$1" ]; then
 
11
        echo "Usage: midentify.sh <file> [<file> ...]"
 
12
        exit 1
 
13
fi
 
14
 
 
15
mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
 
16
        sed -ne '/^ID_/ {
 
17
                          s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
 
18
                        }'