[FFmpeg-cvslog] r13962 - in trunk/libavcodec: aac_ac3_parser.h ac3_parser.c

benoit subversion
Wed Jun 25 14:30:36 CEST 2008


Author: benoit
Date: Wed Jun 25 14:30:35 2008
New Revision: 13962

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


Modified:
   trunk/libavcodec/aac_ac3_parser.h
   trunk/libavcodec/ac3_parser.c

Modified: trunk/libavcodec/aac_ac3_parser.h
==============================================================================
--- trunk/libavcodec/aac_ac3_parser.h	(original)
+++ trunk/libavcodec/aac_ac3_parser.h	Wed Jun 25 14:30:35 2008
@@ -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;
 

Modified: trunk/libavcodec/ac3_parser.c
==============================================================================
--- trunk/libavcodec/ac3_parser.c	(original)
+++ trunk/libavcodec/ac3_parser.c	Wed Jun 25 14:30:35 2008
@@ -192,5 +192,5 @@ AVCodecParser ac3_parser = {
     sizeof(AACAC3ParseContext),
     ac3_parse_init,
     ff_aac_ac3_parse,
-    NULL,
+    ff_parse_close,
 };




More information about the ffmpeg-cvslog mailing list