| 850 | } |
| 851 | |
| 852 | void UBFFmpegVideoEncoderWorker::writeLatestAudioFrame() |
| 853 | { |
| 854 | AVFrame *frame = mAudioQueue.dequeue(); |
| 855 | writeFrame(frame, mAudioPacket, mController->mAudioStream, mController->mAudioCodecContext, mController->mOutputFormatContext); |
| 856 | av_frame_free(&frame); |
| 857 | |
| 858 | #if LIBAVFORMAT_VERSION_MICRO < 100 |
| 859 | if (audio_samples_buffer) { |
| 860 | av_free(audio_samples_buffer); |
| 861 | av_freep(&frame->data[0]); |
| 862 | audio_samples_buffer = nullptr; |
| 863 | } |
| 864 | #endif |
| 865 | } |
nothing calls this directly
no test coverage detected