[FFmpeg-cvslog] r11532 - in trunk/libavformat: avc.c avc.h
lucabe
subversion
Tue Jan 15 09:05:59 CET 2008
Author: lucabe
Date: Tue Jan 15 09:05:58 2008
New Revision: 11532
Log:
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)
Modified:
trunk/libavformat/avc.c
trunk/libavformat/avc.h
Modified: trunk/libavformat/avc.c
==============================================================================
--- trunk/libavformat/avc.c (original)
+++ trunk/libavformat/avc.c Tue Jan 15 09:05:58 2008
@@ -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 @@ int ff_avc_parse_nal_units(uint8_t *buf_
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;
Modified: trunk/libavformat/avc.h
==============================================================================
--- trunk/libavformat/avc.h (original)
+++ trunk/libavformat/avc.h Tue Jan 15 09:05:58 2008
@@ -27,5 +27,6 @@
int ff_avc_parse_nal_units(uint8_t *buf_in, uint8_t **buf, int *size);
int ff_isom_write_avcc(ByteIOContext *pb, uint8_t *data, int len);
+uint8_t *ff_avc_find_startcode(uint8_t *p, uint8_t *end);
#endif /* AVC_H */
More information about the ffmpeg-cvslog
mailing list