mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/id3v2enc: fix bug, CTOC flags take only one byte
This commit is contained in:
parent
7c2c5c4940
commit
6473a5d35c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue