summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-01 01:47:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-01 01:51:01 +0100
commiteadc21cfe74fc112dbdbe91e6988bdeae175b861 (patch)
treeb89dcffecd94bb61fda0f38051b352a183d831d8 /libavcodec/ac3dec.c
parentdf6d21c1e7d347b533b78f0b0ff72bb52e104b73 (diff)
downloadffmpeg-eadc21cfe74fc112dbdbe91e6988bdeae175b861.tar.gz
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c4
1 files changed, 2 insertions, 2 deletions
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;