Revision b973f9ad

View differences:

libavformat/avc.c
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 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;
libavformat/avc.h
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 */

Also available in: Unified diff