diff options
| author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-08-23 20:18:22 +0100 |
|---|---|---|
| committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-08-23 20:18:22 +0100 |
| commit | b097a80fb2d9100e02f2fdaf62fe3d408f73763f (patch) | |
| tree | 930fda0d620d73f453e7be7eb51aad28de3395cf /src/combined/ffmpeg/ff_video_decoder.c | |
| parent | 53ec0b8ab9e7076d84221bbd5ea84978239a1afc (diff) | |
| parent | edb68926aced0739f3e62ea2501bc32326c02f86 (diff) | |
| download | xine-lib-b097a80fb2d9100e02f2fdaf62fe3d408f73763f.tar.gz xine-lib-b097a80fb2d9100e02f2fdaf62fe3d408f73763f.tar.bz2 | |
Merge from 1.1.
--HG--
rename : src/xine-engine/buffer.h => include/xine/buffer.h
rename : src/libxineadec/xine_lpcm_decoder.c => src/audio_dec/xine_lpcm_decoder.c
rename : src/libspuhdmv/xine_hdmv_decoder.c => src/spu_dec/spuhdmv_decoder.c
Diffstat (limited to 'src/combined/ffmpeg/ff_video_decoder.c')
| -rw-r--r-- | src/combined/ffmpeg/ff_video_decoder.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c index b20ccad70..5e4967f6c 100644 --- a/src/combined/ffmpeg/ff_video_decoder.c +++ b/src/combined/ffmpeg/ff_video_decoder.c @@ -318,6 +318,10 @@ static void init_video_codec (ff_video_decoder_t *this, unsigned int codec_type) this->context->flags |= CODEC_FLAG_EMU_EDGE; } + /* TJ. without this, it wont work at all on my machine */ + this->context->codec_id = this->codec->id; + this->context->codec_type = this->codec->type; + if (this->class->choose_speed_over_accuracy) this->context->flags2 |= CODEC_FLAG2_FAST; @@ -898,6 +902,8 @@ static void ff_handle_header_buffer (ff_video_decoder_t *this, buf_element_t *bu switch (codec_type) { case BUF_VIDEO_RV10: case BUF_VIDEO_RV20: + case BUF_VIDEO_RV30: + case BUF_VIDEO_RV40: this->bih.biWidth = _X_BE_16(&this->buf[12]); this->bih.biHeight = _X_BE_16(&this->buf[14]); |
