opus_parser: make ParseContext the first element in OpusParseContext

ff_parse_close expects priv_data to be the ParseContext directly and
thus doesn't work if it isn't at the beginning of OpusParseContext.

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
Andreas Cadhalpun 2016-12-09 00:01:35 +01:00
parent 7d3baebe40
commit c085f1a7e1

View File

@ -31,10 +31,10 @@
#include "parser.h"
typedef struct OpusParseContext {
ParseContext pc;
OpusContext ctx;
OpusPacket pkt;
int extradata_parsed;
ParseContext pc;
int ts_framing;
} OpusParseContext;