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

Function decssaWork

libhb/decssasub.c:262–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static int decssaWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
263 hb_buffer_t ** buf_out )
264{
265 hb_work_private_t * pv = w->private_data;
266 hb_buffer_t * in;
267 int result;
268
269 in = ssa_read(pv);
270 if (in == NULL)
271 {
272 return HB_WORK_OK;
273 }
274
275 result = decavsubWork(pv->ctx, &in, buf_out);
276 if (in != NULL)
277 {
278 hb_buffer_close(&in);
279 }
280 return result;
281}
282
283static void decssaClose( hb_work_object_t * w )
284{

Callers

nothing calls this directly

Calls 3

ssa_readFunction · 0.85
decavsubWorkFunction · 0.85
hb_buffer_closeFunction · 0.85

Tested by

no test coverage detected