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

Function Flush

libhb/encavcodec.c:1448–1463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446}
1447
1448static void Flush( hb_work_object_t * w, hb_buffer_list_t * list )
1449{
1450 hb_work_private_t * pv = w->private_data;
1451
1452 avcodec_send_frame(pv->context, NULL);
1453
1454 // Write stats
1455 // vpx only writes stats at final flush
1456 if (pv->job->pass_id == HB_PASS_ENCODE_ANALYSIS &&
1457 pv->context->stats_out != NULL)
1458 {
1459 fprintf( pv->file, "%s", pv->context->stats_out );
1460 }
1461
1462 get_packets(w, list);
1463}
1464
1465/***********************************************************************
1466 * Work

Callers 1

encavcodecWorkFunction · 0.70

Calls 1

get_packetsFunction · 0.70

Tested by

no test coverage detected