OSDN Git Service

Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Oct 2012 15:09:13 +0000 (17:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Oct 2012 15:09:13 +0000 (17:09 +0200)
* qatar/master:
  vc1: Use codec ID from AVCodecContext while parsing frame header
  avplay: support mid-stream sample rate changes

Conflicts:
ffplay.c
libavcodec/vc1.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/vc1.c

@@@ -583,9 -576,7 +583,9 @@@ int ff_vc1_parse_frame_header(VC1Contex
  
      if (v->finterpflag)
          v->interpfrm = get_bits1(gb);
-     if (v->s.avctx->codec->id == AV_CODEC_ID_MSS2)
 +    if (!v->s.avctx->codec)
 +        return -1;
+     if (v->s.avctx->codec_id == AV_CODEC_ID_MSS2)
          v->respic   =
          v->rangered =
          v->multires = get_bits(gb, 2) == 1;