| 132 | } |
| 133 | |
| 134 | static av_cold void vp8_decode_flush_impl(AVCodecContext *avctx, int free_mem) |
| 135 | { |
| 136 | VP8Context *s = avctx->priv_data; |
| 137 | int i; |
| 138 | |
| 139 | for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++) |
| 140 | vp8_release_frame(&s->frames[i]); |
| 141 | memset(s->framep, 0, sizeof(s->framep)); |
| 142 | |
| 143 | if (free_mem) |
| 144 | free_buffers(s); |
| 145 | |
| 146 | if (FF_HW_HAS_CB(avctx, flush)) |
| 147 | FF_HW_SIMPLE_CALL(avctx, flush); |
| 148 | } |
| 149 | |
| 150 | static av_cold void vp8_decode_flush(AVCodecContext *avctx) |
| 151 | { |
no test coverage detected