[FFmpeg-cvslog] avformat/microdvdenc: Use avio_w8 to write a char

Andreas Rheinhardt git at videolan.org
Fri Dec 27 13:46:37 EET 2019


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Dec 12 16:53:18 2019 +0100| [39561bbe77626458b28f186d03a2ba273d55b655] | committer: Michael Niedermayer

avformat/microdvdenc: Use avio_w8 to write a char

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavformat/microdvdenc.c b/libavformat/microdvdenc.c
index 6639651e02..80e6fa8674 100644
--- a/libavformat/microdvdenc.c
+++ b/libavformat/microdvdenc.c
@@ -52,7 +52,7 @@ static int microdvd_write_packet(AVFormatContext *avf, AVPacket *pkt)
     else
         avio_printf(avf->pb, "{%"PRId64"}", pkt->pts + pkt->duration);
     avio_write(avf->pb, pkt->data, pkt->size);
-    avio_write(avf->pb, "\n", 1);
+    avio_w8(avf->pb, '\n');
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list