changeset 4151:93baab5a86d2 libavcodec

rename ff_mpeg1_find_frame_end to mpeg1_find_frame_end and make it static
author bcoudurier
date Mon, 06 Nov 2006 10:46:54 +0000
parents 2205aefb22b7
children e893c1438b36
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Mon Nov 06 10:43:49 2006 +0000
+++ b/mpeg12.c	Mon Nov 06 10:46:54 2006 +0000
@@ -2994,7 +2994,7 @@
  * finds the end of the current frame in the bitstream.
  * @return the position of the first byte of the next frame, or -1
  */
-int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
+static int mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
 {
     int i;
     uint32_t state= pc->state;
@@ -3056,7 +3056,7 @@
     }
 
     if(s2->flags&CODEC_FLAG_TRUNCATED){
-        int next= ff_mpeg1_find_frame_end(&s2->parse_context, buf, buf_size);
+        int next= mpeg1_find_frame_end(&s2->parse_context, buf, buf_size);
 
         if( ff_combine_frame(&s2->parse_context, next, &buf, &buf_size) < 0 )
             return buf_size;
@@ -3428,7 +3428,7 @@
     if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){
         next= buf_size;
     }else{
-        next= ff_mpeg1_find_frame_end(pc, buf, buf_size);
+        next= mpeg1_find_frame_end(pc, buf, buf_size);
 
         if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
             *poutbuf = NULL;