| 274 | } |
| 275 | |
| 276 | void FFmpegEncoder::Exit() { |
| 277 | av_packet_unref(packet_); |
| 278 | av_frame_free(&frame_); |
| 279 | if (codec_ctx_) { |
| 280 | avcodec_close(codec_ctx_); |
| 281 | } |
| 282 | avcodec_free_context(&codec_ctx_); |
| 283 | } |
| 284 | |
| 285 | int32_t FFmpegEncoder::GetEncodeFps() { |
| 286 | return fps_stat_->value(); |
nothing calls this directly
no outgoing calls
no test coverage detected