MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / add_avframe

Method add_avframe

src/FFmpegWriter.cpp:1000–1009  ·  view source on GitHub ↗

Add an AVFrame to the cache

Source from the content-addressed store, hash-verified

998
999// Add an AVFrame to the cache
1000void FFmpegWriter::add_avframe(std::shared_ptr<Frame> frame, AVFrame *av_frame) {
1001 // Add AVFrame to map (if it does not already exist)
1002 if (!av_frames.count(frame)) {
1003 // Add av_frame
1004 av_frames[frame] = av_frame;
1005 } else {
1006 // Do not add, and deallocate this AVFrame
1007 AV_FREE_FRAME(&av_frame);
1008 }
1009}
1010
1011// Add an audio output stream
1012AVStream *FFmpegWriter::add_audio_stream() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected