Commit 6473a5d3 authored by Paul B Mahol's avatar Paul B Mahol

avformat/id3v2enc: fix bug, CTOC flags take only one byte

parent 7c2c5c49
...@@ -269,7 +269,7 @@ static int write_ctoc(AVFormatContext *s, ID3v2EncContext *id3, int enc) ...@@ -269,7 +269,7 @@ static int write_ctoc(AVFormatContext *s, ID3v2EncContext *id3, int enc)
goto fail; goto fail;
id3->len += avio_put_str(dyn_bc, "toc"); 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); avio_w8(dyn_bc, s->nb_chapters);
for (int i = 0; i < s->nb_chapters; i++) { for (int i = 0; i < s->nb_chapters; i++) {
snprintf(name, 122, "ch%d", i); snprintf(name, 122, "ch%d", i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment