vc1: Use codec ID from AVCodecContext while parsing frame header
authorMashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Thu, 11 Oct 2012 17:13:56 +0000 (13:13 -0400)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 13 Oct 2012 06:33:07 +0000 (08:33 +0200)
commit5d2be71b9ecf2a88752666a2c4039f4d98419d35
tree57654a065b774ddb8331d92e0f42c3c65ed476b9
parent6304f78edf6a3a119c2e2d9adfed5437ad2e5de7
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>
libavcodec/vc1.c