[FFmpeg-cvslog] avformat/id3v2enc: fix bug, CTOC flags take only one byte

Paul B Mahol git at videolan.org
Fri Jun 14 00:13:32 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jun 13 23:11:10 2019 +0200| [6473a5d35c16b1e673c07f0927ec5d2e10433e79] | committer: Paul B Mahol

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6473a5d35c16b1e673c07f0927ec5d2e10433e79
---

 libavformat/id3v2enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);



More information about the ffmpeg-cvslog mailing list