Lines Matching refs:dyn_bc
261 AVIOContext *dyn_bc; in write_ctoc() local
268 if ((ret = avio_open_dyn_buf(&dyn_bc)) < 0) in write_ctoc()
271 avio_put_str(dyn_bc, "toc"); in write_ctoc()
272 avio_w8(dyn_bc, 0x03); in write_ctoc()
273 avio_w8(dyn_bc, s->nb_chapters); in write_ctoc()
276 avio_put_str(dyn_bc, name); in write_ctoc()
278 len = avio_get_dyn_buf(dyn_bc, &dyn_buf); in write_ctoc()
286 ffio_free_dyn_buf(&dyn_bc); in write_ctoc()
296 AVIOContext *dyn_bc; in write_chapter() local
300 if ((ret = avio_open_dyn_buf(&dyn_bc)) < 0) in write_chapter()
307 id3->len += avio_put_str(dyn_bc, name); in write_chapter()
308 avio_wb32(dyn_bc, start); in write_chapter()
309 avio_wb32(dyn_bc, end); in write_chapter()
310 avio_wb32(dyn_bc, 0xFFFFFFFFu); in write_chapter()
311 avio_wb32(dyn_bc, 0xFFFFFFFFu); in write_chapter()
313 if ((ret = write_metadata(dyn_bc, &ch->metadata, id3, enc)) < 0) in write_chapter()
316 len = avio_get_dyn_buf(dyn_bc, &dyn_buf); in write_chapter()
325 ffio_free_dyn_buf(&dyn_bc); in write_chapter()