MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / writeLatestAudioFrame

Method writeLatestAudioFrame

src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp:852–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852void 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}

Callers

nothing calls this directly

Calls 1

writeFrameFunction · 0.85

Tested by

no test coverage detected