Remove AVFrame from cache (and deallocate its memory)
| 2989 | |
| 2990 | // Remove AVFrame from cache (and deallocate its memory) |
| 2991 | void 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) |
| 3003 | void FFmpegReader::RemoveAVPacket(AVPacket *remove_packet) { |
nothing calls this directly
no outgoing calls
no test coverage detected