diff avc.c @ 2935:88a67636f192 libavformat

Make avc_find_startcode non-static, so that it can be used from other files (and add the ff_ prefix, to avoid polluting the namespace)
author lucabe
date Tue, 15 Jan 2008 08:05:58 +0000
parents b75a49790f31
children df47846972da
line wrap: on
line diff
--- a/avc.c	Mon Jan 14 16:11:08 2008 +0000
+++ b/avc.c	Tue Jan 15 08:05:58 2008 +0000
@@ -21,7 +21,7 @@
 #include "avformat.h"
 #include "avio.h"
 
-static uint8_t *avc_find_startcode( uint8_t *p, uint8_t *end )
+uint8_t *ff_avc_find_startcode(uint8_t *p, uint8_t *end)
 {
     uint8_t *a = p + 4 - ((long)p & 3);
 
@@ -68,10 +68,10 @@
     if(ret < 0)
         return ret;
 
-    nal_start = avc_find_startcode(p, end);
+    nal_start = ff_avc_find_startcode(p, end);
     while (nal_start < end) {
         while(!*(nal_start++));
-        nal_end = avc_find_startcode(nal_start, end);
+        nal_end = ff_avc_find_startcode(nal_start, end);
         put_be32(pb, nal_end - nal_start);
         put_buffer(pb, nal_start, nal_end - nal_start);
         nal_start = nal_end;