mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-15 11:51:33 +00:00
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:
parent
7d3baebe40
commit
c085f1a7e1
@ -31,10 +31,10 @@
|
|||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
|
|
||||||
typedef struct OpusParseContext {
|
typedef struct OpusParseContext {
|
||||||
|
ParseContext pc;
|
||||||
OpusContext ctx;
|
OpusContext ctx;
|
||||||
OpusPacket pkt;
|
OpusPacket pkt;
|
||||||
int extradata_parsed;
|
int extradata_parsed;
|
||||||
ParseContext pc;
|
|
||||||
int ts_framing;
|
int ts_framing;
|
||||||
} OpusParseContext;
|
} OpusParseContext;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user