Browse Source

vc1: Use codec ID from AVCodecContext while parsing frame header

This fixes a segfault with samples that I have (both of them MPEG-TS). Looks like
avctx->codec is not being set during parsing.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
tags/n1.1
Mashiat Sarker Shakkhar Kostya Shishkov 13 years ago
parent
commit
5d2be71b9e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vc1.c

+ 1
- 1
libavcodec/vc1.c View File

@@ -576,7 +576,7 @@ int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)

if (v->finterpflag)
v->interpfrm = get_bits1(gb);
if (v->s.avctx->codec->id == AV_CODEC_ID_MSS2)
if (v->s.avctx->codec_id == AV_CODEC_ID_MSS2)
v->respic =
v->rangered =
v->multires = get_bits(gb, 2) == 1;


Loading…
Cancel
Save