summaryrefslogtreecommitdiff
path: root/libavformat/id3v2enc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-06-13 23:11:10 +0200
committerPaul B Mahol <onemda@gmail.com>2019-06-13 23:12:51 +0200
commit6473a5d35c16b1e673c07f0927ec5d2e10433e79 (patch)
tree15c5cfa6073b0f94278fa6c70a3b22ab8c714219 /libavformat/id3v2enc.c
parent7c2c5c4940a61311d153ef4e4a61fa827c341615 (diff)
downloadffmpeg-6473a5d35c16b1e673c07f0927ec5d2e10433e79.tar.gz
avformat/id3v2enc: fix bug, CTOC flags take only one byte
Diffstat (limited to 'libavformat/id3v2enc.c')
-rw-r--r--libavformat/id3v2enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v2enc.c b/libavformat/id3v2enc.c
index 8d976f2d95..c13b93a7d8 100644
--- a/libavformat/id3v2enc.c
+++ b/libavformat/id3v2enc.c
@@ -269,7 +269,7 @@ static int write_ctoc(AVFormatContext *s, ID3v2EncContext *id3, int enc)
goto fail;
id3->len += avio_put_str(dyn_bc, "toc");
- avio_wb16(dyn_bc, 0x03);
+ avio_w8(dyn_bc, 0x03);
avio_w8(dyn_bc, s->nb_chapters);
for (int i = 0; i < s->nb_chapters; i++) {
snprintf(name, 122, "ch%d", i);