MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_bitvec_cpy

Function hb_bitvec_cpy

libhb/muxcommon.c:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static 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

Callers 2

mf_pushFunction · 0.85
muxWorkFunction · 0.85

Calls 1

hb_bitvec_add_bitsFunction · 0.85

Tested by

no test coverage detected