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

Method RemoveAVFrame

src/FFmpegReader.cpp:2991–3000  ·  view source on GitHub ↗

Remove AVFrame from cache (and deallocate its memory)

Source from the content-addressed store, hash-verified

2989
2990// Remove AVFrame from cache (and deallocate its memory)
2991void FFmpegReader::RemoveAVFrame(AVFrame *remove_frame) {
2992 // Remove pFrame (if exists)
2993 if (remove_frame) {
2994 // Free memory
2995 av_freep(&remove_frame->data[0]);
2996#ifndef WIN32
2997 AV_FREE_FRAME(&remove_frame);
2998#endif
2999 }
3000}
3001
3002// Remove AVPacket from cache (and deallocate its memory)
3003void FFmpegReader::RemoveAVPacket(AVPacket *remove_packet) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected