diff options
author | Alexander Strange <astrange@ithinksw.com> | 2007-12-05 13:11:18 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-12-05 13:11:18 +0000 |
commit | bc2bc41bb8dbfa4c39da5a03ec87bc667bf872dd (patch) | |
tree | f42c4fd34b6604e7c85f13eda5ea96597036496d /libavcodec | |
parent | b180d9fe99a2b681d5b2005e31ab13912a752d4b (diff) | |
download | ffmpeg-bc2bc41bb8dbfa4c39da5a03ec87bc667bf872dd.tar.gz |
Fix missing chroma in version 3 STR.
Closes issue 290
Patch by Alexander Strange: astrange ithinksw com
Originally committed as revision 11170 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mdec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 318b3b927b..e91d5b7858 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -175,9 +175,6 @@ static int decode_frame(AVCodecContext *avctx, } p->pict_type= I_TYPE; p->key_frame= 1; - a->last_dc[0]= - a->last_dc[1]= - a->last_dc[2]= 0; a->bitstream_buffer= av_fast_realloc(a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); for(i=0; i<buf_size; i+=2){ @@ -192,6 +189,10 @@ static int decode_frame(AVCodecContext *avctx, a->qscale= get_bits(&a->gb, 16); a->version= get_bits(&a->gb, 16); + a->last_dc[0]= + a->last_dc[1]= + a->last_dc[2]= 128; + // printf("qscale:%d (0x%X), version:%d (0x%X)\n", a->qscale, a->qscale, a->version, a->version); for(a->mb_x=0; a->mb_x<a->mb_width; a->mb_x++){ |