~ubuntu-branches/debian/squeeze/gstreamer0.10-ffmpeg/squeeze

« back to all changes in this revision

Viewing changes to gst-libs/ext/ffmpeg/libavcodec/eatgv.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-02-19 18:14:59 UTC
  • mfrom: (4.1.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20100219181459-mect96st3px2jfsi
Tags: 0.10.9.2-1
* New upstream pre-release:
  + debian/patches/03_restricted-caps.patch,
    debian/patches/04_ignore-vdpau.patch:
    - Dropped, merged upstream.
* debian/patches/03_too-new-codec-ids.patch:
  + Disable some ffmpeg codec IDs because Debian's
    ffmpeg is once again too old...

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
/**
23
23
 * @file libavcodec/eatgv.c
24
24
 * Electronic Arts TGV Video Decoder
25
 
 * by Peter Ross (suxen_drol at hotmail dot com)
 
25
 * by Peter Ross (pross@xvid.org)
26
26
 *
27
27
 * Technical details here:
28
28
 * http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TGV
30
30
 
31
31
#include "avcodec.h"
32
32
#define ALT_BITSTREAM_READER_LE
33
 
#include "bitstream.h"
 
33
#include "get_bits.h"
34
34
#include "libavutil/lzo.h"
35
35
 
36
36
#define EA_PREAMBLE_SIZE    8
237
237
 
238
238
static int tgv_decode_frame(AVCodecContext *avctx,
239
239
                            void *data, int *data_size,
240
 
                            const uint8_t *buf, int buf_size)
 
240
                            AVPacket *avpkt)
241
241
{
 
242
    const uint8_t *buf = avpkt->data;
 
243
    int buf_size = avpkt->size;
242
244
    TgvContext *s = avctx->priv_data;
243
245
    const uint8_t *buf_end = buf + buf_size;
244
246
    int chunk_type;