Browse code

Close parse context. Patch by David LIU david liu st com

Originally committed as revision 13962 to svn://svn.ffmpeg.org/ffmpeg/trunk

David Liu authored on 2008/06/25 21:30:35
Showing 2 changed files
... ...
@@ -28,6 +28,7 @@
28 28
 #include "parser.h"
29 29
 
30 30
 typedef struct AACAC3ParseContext {
31
+    ParseContext pc;
31 32
     int frame_size;
32 33
     int header_size;
33 34
     int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info,
... ...
@@ -38,7 +39,6 @@ typedef struct AACAC3ParseContext {
38 38
     int bit_rate;
39 39
     int samples;
40 40
 
41
-    ParseContext pc;
42 41
     int remaining_size;
43 42
     uint64_t state;
44 43
 
... ...
@@ -192,5 +192,5 @@ AVCodecParser ac3_parser = {
192 192
     sizeof(AACAC3ParseContext),
193 193
     ac3_parse_init,
194 194
     ff_aac_ac3_parse,
195
-    NULL,
195
+    ff_parse_close,
196 196
 };