aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/vc1_parser.c
diff options
context:
space:
mode:
authorRonald S. Bultje2012-02-17 14:18:22 -0800
committerRonald S. Bultje2012-02-18 09:16:39 -0800
commitc742ab4e81bb9dcabfdab006d6b8b09a5808c4ce (patch)
tree0eff1949c90bb07c23de568e8a39ecb1a47826af /libavcodec/vc1_parser.c
parent9d3050d3e95e307ebc34a943484c7add838d1220 (diff)
vc1parse: call vc1_init_common().
The parser uses VLC tables initialized in vc1_common_init(), therefore we should call this function on parser init also. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/vc1_parser.c')
-rw-r--r--libavcodec/vc1_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index dfbb1f5119..bf29032c54 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -188,7 +188,7 @@ static int vc1_parse_init(AVCodecParserContext *s)
{
VC1ParseContext *vpc = s->priv_data;
vpc->v.s.slice_context_count = 1;
- return 0;
+ return ff_vc1_init_common(&vpc->v);
}
AVCodecParser ff_vc1_parser = {