| 180 | } |
| 181 | |
| 182 | static int hb_bitvec_cpy(hb_bitvec_t *bv1, hb_bitvec_t *bv2) |
| 183 | { |
| 184 | if (bv1->size < bv2->size) |
| 185 | { |
| 186 | int result = hb_bitvec_add_bits(bv1, bv2->size - bv1->size); |
| 187 | if (result < 0) |
| 188 | return result; |
| 189 | } |
| 190 | |
| 191 | int words = (bv1->size + 31) >> 5; |
| 192 | memcpy(bv1->vec, bv2->vec, words * sizeof(uint32_t)); |
| 193 | |
| 194 | return 0; |
| 195 | } |
| 196 | |
| 197 | // The muxer handles two different kinds of media: Video and audio tracks |
| 198 | // are continuous: once they start they generate continuous, consecutive |
no test coverage detected