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

Function Finalize

libhb/encavcodecaudio.c:371–381  ·  view source on GitHub ↗

* Close *********************************************************************** * **********************************************************************/ Some encoders (e.g. flac) require a final NULL encode in order to finalize things.

Source from the content-addressed store, hash-verified

369// Some encoders (e.g. flac) require a final NULL encode in order to
370// finalize things.
371static void Finalize(hb_work_object_t *w)
372{
373 hb_work_private_t *pv = w->private_data;
374
375 // Then we need to recopy the header since it was modified
376 if (pv->context->extradata != NULL)
377 {
378 hb_set_extradata(w->extradata, pv->context->extradata,
379 pv->context->extradata_size);
380 }
381}
382
383static void encavcodecaClose(hb_work_object_t * w)
384{

Callers 1

encavcodecaCloseFunction · 0.85

Calls 1

hb_set_extradataFunction · 0.85

Tested by

no test coverage detected