* 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 */
| 139 | * @return the position of the startcode or -1 if not found |
| 140 | */ |
| 141 | static 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 | |
| 152 | static int nut_probe(AVProbeData *p){ |
| 153 | int i; |
no test coverage detected