diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-01 16:30:17 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-02 17:16:34 +0200 |
commit | 2b2e9afdd2b435fd5f6f1f0216c89a1f71aeb1be (patch) | |
tree | 1050d8a4e4a899175cb10af8220d3ce8aef9857c /libavformat/sccenc.c | |
parent | 8766361fc16b6d25ee8be880bf55c9761490cb99 (diff) | |
download | ffmpeg-2b2e9afdd2b435fd5f6f1f0216c89a1f71aeb1be.tar.gz |
avformat/(lrc|scc)enc: Use avio_w8() to write a single char
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/sccenc.c')
-rw-r--r-- | libavformat/sccenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sccenc.c b/libavformat/sccenc.c index a40d84cb4e..c8c4d097e4 100644 --- a/libavformat/sccenc.c +++ b/libavformat/sccenc.c @@ -94,12 +94,12 @@ static int scc_write_packet(AVFormatContext *avf, AVPacket *pkt) scc->inside = 1; } if (scc->n > 0) - avio_printf(avf->pb, " "); + avio_w8(avf->pb, ' '); avio_printf(avf->pb, "%02x%02x", pkt->data[i + 1], pkt->data[i + 2]); scc->n++; } if (scc->inside && (scc->prev_h != h || scc->prev_m != m || scc->prev_s != s || scc->prev_f != f)) { - avio_printf(avf->pb, "\n"); + avio_w8(avf->pb, '\n'); scc->n = 0; scc->inside = 0; } |