MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / find_startcode

Function find_startcode

libavformat/nutdec.c:141–150  ·  view source on GitHub ↗

* Find the given startcode. * @param code the startcode * @param pos the start position of the search, or -1 if the current position * @return the position of the startcode or -1 if not found */

Source from the content-addressed store, hash-verified

139 * @return the position of the startcode or -1 if not found
140 */
141static int64_t find_startcode(ByteIOContext *bc, uint64_t code, int64_t pos){
142 for(;;){
143 uint64_t startcode= find_any_startcode(bc, pos);
144 if(startcode == code)
145 return url_ftell(bc) - 8;
146 else if(startcode == 0)
147 return -1;
148 pos=-1;
149 }
150}
151
152static int nut_probe(AVProbeData *p){
153 int i;

Callers 3

nut_read_headerFunction · 0.85
nut_read_timestampFunction · 0.85
read_seekFunction · 0.85

Calls 2

find_any_startcodeFunction · 0.85
url_ftellFunction · 0.85

Tested by

no test coverage detected