Browse Source

Save frame header info in context variables

Originally committed as revision 7815 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Kostya Shishkov 18 years ago
parent
commit
93731ff27d
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      libavcodec/vc1.c

+ 4
- 5
libavcodec/vc1.c View File

@@ -1616,14 +1616,13 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)


static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
{ {
int fcm;
int pqindex, lowquant; int pqindex, lowquant;
int status; int status;


v->p_frame_skipped = 0; v->p_frame_skipped = 0;


if(v->interlace) if(v->interlace)
fcm = decode012(gb);
v->fcm = decode012(gb);
switch(get_prefix(gb, 0, 4)) { switch(get_prefix(gb, 0, 4)) {
case 0: case 0:
v->s.pict_type = P_TYPE; v->s.pict_type = P_TYPE;
@@ -1646,10 +1645,10 @@ static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
get_bits(gb, 8); get_bits(gb, 8);
if(v->broadcast) { if(v->broadcast) {
if(!v->interlace || v->panscanflag) { if(!v->interlace || v->panscanflag) {
get_bits(gb, 2);
v->rptfrm = get_bits(gb, 2);
} else { } else {
get_bits1(gb);
get_bits1(gb);
v->tff = get_bits1(gb);
v->rptfrm = get_bits1(gb);
} }
} }
if(v->panscanflag) { if(v->panscanflag) {


Loading…
Cancel
Save