| 542 | } |
| 543 | |
| 544 | static int flush_encoder(unsigned int stream_index) |
| 545 | { |
| 546 | if (!(stream_ctx[stream_index].enc_ctx->codec->capabilities & |
| 547 | AV_CODEC_CAP_DELAY)) |
| 548 | return 0; |
| 549 | |
| 550 | av_log(NULL, AV_LOG_INFO, "Flushing stream #%u encoder\n", stream_index); |
| 551 | return encode_write_frame(stream_index, 1); |
| 552 | } |
| 553 | |
| 554 | int main(int argc, char **argv) |
| 555 | { |
no test coverage detected