Add an AVFrame to the cache
| 998 | |
| 999 | // Add an AVFrame to the cache |
| 1000 | void 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 |
| 1012 | AVStream *FFmpegWriter::add_audio_stream() { |
nothing calls this directly
no outgoing calls
no test coverage detected