| 242 | } |
| 243 | |
| 244 | static int webm_chunk_write_trailer(AVFormatContext *s) |
| 245 | { |
| 246 | WebMChunkContext *wc = s->priv_data; |
| 247 | AVFormatContext *oc = wc->avf; |
| 248 | int ret; |
| 249 | |
| 250 | if (!oc->pb) { |
| 251 | ret = chunk_start(s); |
| 252 | if (ret < 0) |
| 253 | return ret; |
| 254 | } |
| 255 | ret = av_write_trailer(oc); |
| 256 | if (ret < 0) |
| 257 | return ret; |
| 258 | return chunk_end(s, 0); |
| 259 | } |
| 260 | |
| 261 | static void webm_chunk_deinit(AVFormatContext *s) |
| 262 | { |
nothing calls this directly
no test coverage detected