changeset 7138:1f85910c9ab2 libavcodec

Close parse context. Patch by David LIU david liu st com
author benoit
date Wed, 25 Jun 2008 12:30:35 +0000
parents 186eb61a9860
children 03fe3194eff7
files aac_ac3_parser.h ac3_parser.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aac_ac3_parser.h	Wed Jun 25 12:08:39 2008 +0000
+++ b/aac_ac3_parser.h	Wed Jun 25 12:30:35 2008 +0000
@@ -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 @@
     int bit_rate;
     int samples;
 
-    ParseContext pc;
     int remaining_size;
     uint64_t state;
 
--- a/ac3_parser.c	Wed Jun 25 12:08:39 2008 +0000
+++ b/ac3_parser.c	Wed Jun 25 12:30:35 2008 +0000
@@ -192,5 +192,5 @@
     sizeof(AACAC3ParseContext),
     ac3_parse_init,
     ff_aac_ac3_parse,
-    NULL,
+    ff_parse_close,
 };