MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / flush_cache

Function flush_cache

libavcodec/pgssubdec.c:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100} PGSSubContext;
101
102static void flush_cache(AVCodecContext *avctx)
103{
104 PGSSubContext *ctx = avctx->priv_data;
105 int i;
106
107 for (i = 0; i < ctx->objects.count; i++) {
108 av_freep(&ctx->objects.object[i].rle);
109 ctx->objects.object[i].rle_buffer_size = 0;
110 ctx->objects.object[i].rle_remaining_len = 0;
111 }
112 ctx->objects.count = 0;
113 ctx->palettes.count = 0;
114}
115
116static PGSSubObject * find_object(int id, PGSSubObjects *objects)
117{

Callers 2

close_decoderFunction · 0.85

Calls 1

av_freepFunction · 0.85

Tested by

no test coverage detected