~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavformat/4xm.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 17:51:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120175119-gu6kw1arv5tmf1vr
Tags: 3:0.svn20090119-1ubuntu1+unstripped1
* merge with the ubuntu.jaunty branch
* reenable x264 LP: #303537
* build against vdpau
* enable xvmc support

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 *   http://www.pcisys.net/~melanson/codecs/
28
28
 */
29
29
 
 
30
#include "libavutil/intreadwrite.h"
30
31
#include "avformat.h"
31
32
 
32
 
#define  RIFF_TAG MKTAG('R', 'I', 'F', 'F')
33
 
#define _4XMV_TAG MKTAG('4', 'X', 'M', 'V')
34
 
#define  LIST_TAG MKTAG('L', 'I', 'S', 'T')
35
 
#define  HEAD_TAG MKTAG('H', 'E', 'A', 'D')
36
 
#define  TRK__TAG MKTAG('T', 'R', 'K', '_')
37
 
#define  MOVI_TAG MKTAG('M', 'O', 'V', 'I')
38
 
#define  VTRK_TAG MKTAG('V', 'T', 'R', 'K')
39
 
#define  STRK_TAG MKTAG('S', 'T', 'R', 'K')
40
 
#define  std__TAG MKTAG('s', 't', 'd', '_')
41
 
#define  name_TAG MKTAG('n', 'a', 'm', 'e')
42
 
#define  vtrk_TAG MKTAG('v', 't', 'r', 'k')
43
 
#define  strk_TAG MKTAG('s', 't', 'r', 'k')
44
 
#define  ifrm_TAG MKTAG('i', 'f', 'r', 'm')
45
 
#define  pfrm_TAG MKTAG('p', 'f', 'r', 'm')
46
 
#define  cfrm_TAG MKTAG('c', 'f', 'r', 'm')
47
 
#define  ifr2_TAG MKTAG('i', 'f', 'r', '2')
48
 
#define  pfr2_TAG MKTAG('p', 'f', 'r', '2')
49
 
#define  cfr2_TAG MKTAG('c', 'f', 'r', '2')
50
 
#define  snd__TAG MKTAG('s', 'n', 'd', '_')
 
33
#define     RIFF_TAG MKTAG('R', 'I', 'F', 'F')
 
34
#define  FOURXMV_TAG MKTAG('4', 'X', 'M', 'V')
 
35
#define     LIST_TAG MKTAG('L', 'I', 'S', 'T')
 
36
#define     HEAD_TAG MKTAG('H', 'E', 'A', 'D')
 
37
#define     TRK__TAG MKTAG('T', 'R', 'K', '_')
 
38
#define     MOVI_TAG MKTAG('M', 'O', 'V', 'I')
 
39
#define     VTRK_TAG MKTAG('V', 'T', 'R', 'K')
 
40
#define     STRK_TAG MKTAG('S', 'T', 'R', 'K')
 
41
#define     std__TAG MKTAG('s', 't', 'd', '_')
 
42
#define     name_TAG MKTAG('n', 'a', 'm', 'e')
 
43
#define     vtrk_TAG MKTAG('v', 't', 'r', 'k')
 
44
#define     strk_TAG MKTAG('s', 't', 'r', 'k')
 
45
#define     ifrm_TAG MKTAG('i', 'f', 'r', 'm')
 
46
#define     pfrm_TAG MKTAG('p', 'f', 'r', 'm')
 
47
#define     cfrm_TAG MKTAG('c', 'f', 'r', 'm')
 
48
#define     ifr2_TAG MKTAG('i', 'f', 'r', '2')
 
49
#define     pfr2_TAG MKTAG('p', 'f', 'r', '2')
 
50
#define     cfr2_TAG MKTAG('c', 'f', 'r', '2')
 
51
#define     snd__TAG MKTAG('s', 'n', 'd', '_')
51
52
 
52
53
#define vtrk_SIZE 0x44
53
54
#define strk_SIZE 0x28
83
84
static int fourxm_probe(AVProbeData *p)
84
85
{
85
86
    if ((AV_RL32(&p->buf[0]) != RIFF_TAG) ||
86
 
        (AV_RL32(&p->buf[8]) != _4XMV_TAG))
 
87
        (AV_RL32(&p->buf[8]) != FOURXMV_TAG))
87
88
        return 0;
88
89
 
89
90
    return AVPROBE_SCORE_MAX;