Browse code

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)

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

Luca Abeni authored on 2008/01/15 17:05:58
Showing 2 changed files
... ...
@@ -21,7 +21,7 @@
21 21
 #include "avformat.h"
22 22
 #include "avio.h"
23 23
 
24
-static uint8_t *avc_find_startcode( uint8_t *p, uint8_t *end )
24
+uint8_t *ff_avc_find_startcode(uint8_t *p, uint8_t *end)
25 25
 {
26 26
     uint8_t *a = p + 4 - ((long)p & 3);
27 27
 
... ...
@@ -68,10 +68,10 @@ int ff_avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size)
68 68
     if(ret < 0)
69 69
         return ret;
70 70
 
71
-    nal_start = avc_find_startcode(p, end);
71
+    nal_start = ff_avc_find_startcode(p, end);
72 72
     while (nal_start < end) {
73 73
         while(!*(nal_start++));
74
-        nal_end = avc_find_startcode(nal_start, end);
74
+        nal_end = ff_avc_find_startcode(nal_start, end);
75 75
         put_be32(pb, nal_end - nal_start);
76 76
         put_buffer(pb, nal_start, nal_end - nal_start);
77 77
         nal_start = nal_end;
... ...
@@ -27,5 +27,6 @@
27 27
 
28 28
 int ff_avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size);
29 29
 int ff_isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len);
30
+uint8_t *ff_avc_find_startcode(uint8_t *p, uint8_t *end);
30 31
 
31 32
 #endif /* AVC_H */