[FFmpeg-cvslog] opus_parser: make ParseContext the first element in OpusParseContext
Andreas Cadhalpun
git at videolan.org
Sat Dec 10 14:38:45 EET 2016
ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Fri Dec 9 00:01:35 2016 +0100| [c085f1a7e1030aabd175c8438dab7ca6fad9e98f] | committer: Andreas Cadhalpun
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 at gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c085f1a7e1030aabd175c8438dab7ca6fad9e98f
---
libavcodec/opus_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/opus_parser.c b/libavcodec/opus_parser.c
index c30fd7b..893573e 100644
--- a/libavcodec/opus_parser.c
+++ b/libavcodec/opus_parser.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list