Commit bf762686 authored by benoit's avatar benoit

Fix missing chroma in version 3 STR.

Closes issue 290
Patch by Alexander Strange: astrange ithinksw com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11170 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d1ce9cd
...@@ -175,9 +175,6 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -175,9 +175,6 @@ static int decode_frame(AVCodecContext *avctx,
} }
p->pict_type= I_TYPE; p->pict_type= I_TYPE;
p->key_frame= 1; 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); 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){ for(i=0; i<buf_size; i+=2){
...@@ -192,6 +189,10 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -192,6 +189,10 @@ static int decode_frame(AVCodecContext *avctx,
a->qscale= get_bits(&a->gb, 16); a->qscale= get_bits(&a->gb, 16);
a->version= 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); // 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++){ for(a->mb_x=0; a->mb_x<a->mb_width; a->mb_x++){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment