| 100 | } PGSSubContext; |
| 101 | |
| 102 | static 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 | |
| 116 | static PGSSubObject * find_object(int id, PGSSubObjects *objects) |
| 117 | { |
no test coverage detected