changeset 5986:da1e68b0e975 libavcodec

Fix missing chroma in version 3 STR. Closes issue 290 Patch by Alexander Strange: astrange ithinksw com
author benoit
date Wed, 05 Dec 2007 13:11:18 +0000
parents 51b4b51fa622
children bc6d765d1d53
files mdec.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mdec.c	Wed Dec 05 11:36:06 2007 +0000
+++ b/mdec.c	Wed Dec 05 13:11:18 2007 +0000
@@ -175,9 +175,6 @@
     }
     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 @@
     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++){