| 153 | } |
| 154 | |
| 155 | static int64_t get_pts(AVIOContext *pb, int c) |
| 156 | { |
| 157 | uint8_t buf[5]; |
| 158 | int ret; |
| 159 | |
| 160 | buf[0] = c < 0 ? avio_r8(pb) : c; |
| 161 | ret = avio_read(pb, buf + 1, 4); |
| 162 | if (ret < 4) |
| 163 | return AV_NOPTS_VALUE; |
| 164 | |
| 165 | return ff_parse_pes_pts(buf); |
| 166 | } |
| 167 | |
| 168 | static int find_next_start_code(AVIOContext *pb, int *size_ptr, |
| 169 | int32_t *header_state) |
no test coverage detected