Skip to content

Commit

Permalink
Disable B-frames decoding until they produce correct picture
Browse files Browse the repository at this point in the history
Originally committed as revision 6218 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
Kostya Shishkov committed Sep 10, 2006
1 parent d120e40 commit dc43482
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libavcodec/vc1.c
Expand Up @@ -4180,6 +4180,12 @@ static int vc1_decode_frame(AVCodecContext *avctx,
return -1;
}

/* skip B frames as they are not decoded correctly */
if(s->pict_type == B_TYPE){
av_free(buf2);
return buf_size;
}

// for hurry_up==5
s->current_picture.pict_type= s->pict_type;
s->current_picture.key_frame= s->pict_type == I_TYPE;
Expand Down

0 comments on commit dc43482

Please sign in to comment.