| 159 | } |
| 160 | |
| 161 | static int chunk_start(AVFormatContext *s) |
| 162 | { |
| 163 | WebMChunkContext *wc = s->priv_data; |
| 164 | AVFormatContext *oc = wc->avf; |
| 165 | int ret; |
| 166 | |
| 167 | ret = avio_open_dyn_buf(&oc->pb); |
| 168 | if (ret < 0) |
| 169 | return ret; |
| 170 | wc->chunk_index++; |
| 171 | return 0; |
| 172 | } |
| 173 | |
| 174 | static int chunk_end(AVFormatContext *s, int flush) |
| 175 | { |
no test coverage detected