From eadc21cfe74fc112dbdbe91e6988bdeae175b861 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 1 Mar 2014 01:47:33 +0100 Subject: avcodec/ac3_parser: add avpriv_ac3_parse_header2() and use it in libavcodec The new function has the ability to allocate the structure, allowing it to grow without needing major bumps Signed-off-by: Michael Niedermayer --- libavcodec/ac3dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/ac3dec.c') diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index ef9ab8855e..3a6a7ad5ac 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -274,10 +274,10 @@ static int ac3_parse_header(AC3DecodeContext *s) */ static int parse_frame_header(AC3DecodeContext *s) { - AC3HeaderInfo hdr; + AC3HeaderInfo hdr, *phdr=&hdr; int err; - err = avpriv_ac3_parse_header(&s->gbc, &hdr); + err = avpriv_ac3_parse_header2(&s->gbc, &phdr); if (err) return err; -- cgit v1.2.1