| 1446 | } |
| 1447 | |
| 1448 | static 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 |
no test coverage detected