| 210 | } |
| 211 | |
| 212 | void release() |
| 213 | { |
| 214 | if (avSwsCtx) sws_freeContext(avSwsCtx); |
| 215 | if (frame) av_free(frame); |
| 216 | if (cvt_frame) av_free(cvt_frame); |
| 217 | if (avCodecCtx) avcodec_close(avCodecCtx); |
| 218 | if (avFormatCtx) avformat_close_input(&avFormatCtx); |
| 219 | if (buffer) av_free(buffer); |
| 220 | avFormatCtx = NULL; |
| 221 | avCodecCtx = NULL; |
| 222 | avSwsCtx = NULL; |
| 223 | avCodec = NULL; |
| 224 | frame = NULL; |
| 225 | cvt_frame = NULL; |
| 226 | buffer = NULL; |
| 227 | } |
| 228 | |
| 229 | void write(const Template &t) |
| 230 | { |
no outgoing calls
no test coverage detected