avformat/microdvdenc: Use avio_w8 to write a char
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 12 Dec 2019 15:53:18 +0000 (16:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Dec 2019 11:38:08 +0000 (12:38 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/microdvdenc.c

index 6639651..80e6fa8 100644 (file)
@@ -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;
 }