From 7694a7d93f51adc4eea2f06974b741acb41875e5 Mon Sep 17 00:00:00 2001 From: David Liu Date: Wed, 25 Jun 2008 12:30:35 +0000 Subject: [PATCH] Close parse context. Patch by David LIU david liu st com Originally committed as revision 13962 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aac_ac3_parser.h | 2 +- libavcodec/ac3_parser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, };