diff --git a/libavcodec/aac_ac3_parser.h b/libavcodec/aac_ac3_parser.h index 2d60646a8d..d25502d721 100644 --- a/libavcodec/aac_ac3_parser.h +++ b/libavcodec/aac_ac3_parser.h @@ -28,6 +28,7 @@ #include "parser.h" typedef struct AACAC3ParseContext { + ParseContext pc; int frame_size; int header_size; int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info, @@ -38,7 +39,6 @@ typedef struct AACAC3ParseContext { int bit_rate; int samples; - ParseContext pc; int remaining_size; uint64_t state; diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c index 6ed23d787a..a2f3c82f48 100644 --- a/libavcodec/ac3_parser.c +++ b/libavcodec/ac3_parser.c @@ -192,5 +192,5 @@ AVCodecParser ac3_parser = { sizeof(AACAC3ParseContext), ac3_parse_init, ff_aac_ac3_parse, - NULL, + ff_parse_close, };