[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] CVS: xine-lib/src/libffmpeg mpeg_parser.c, 1.4,
From:       Diego_Pettenò <dgp85 () users ! sourceforge ! net>
Date:       2007-03-29 17:31:45
Message-ID: E1HWyTR-00078n-VV () sc8-pr-cvs10 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/xine/xine-lib/src/libffmpeg
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27441

Modified Files:
	mpeg_parser.c mpeg_parser.h 
Log Message:
Allocate chunk_buffer when initialising the parser, rather than having it inline the \
ff_video_decoder_t struct.

Index: mpeg_parser.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/mpeg_parser.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- mpeg_parser.c	26 Sep 2006 01:19:31 -0000	1.4
+++ mpeg_parser.c	29 Mar 2007 17:31:43 -0000	1.5
@@ -52,6 +52,7 @@
 
 void mpeg_parser_init (mpeg_parser_t *parser)
 {
+  parser->chunk_buffer = xine_xmalloc(BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
   mpeg_parser_reset(parser);
 }
 

Index: mpeg_parser.h
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/mpeg_parser.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mpeg_parser.h	21 Sep 2004 19:27:18 -0000	1.2
+++ mpeg_parser.h	29 Mar 2007 17:31:43 -0000	1.3
@@ -39,7 +39,7 @@
 typedef struct mpeg_parser_s {
   uint32_t        shift;
   int             is_sequence_needed;
-  uint8_t         chunk_buffer[BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
+  uint8_t        *chunk_buffer;
   uint8_t        *chunk_ptr;
   uint8_t        *chunk_start;
   int             buffer_size;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic