[FFmpeg-cvslog] avformat/fitsenc: fill header line with spaces
Paras Chadha
git at videolan.org
Wed Sep 13 03:54:21 EEST 2017
ffmpeg | branch: master | Paras Chadha <paraschadha18 at gmail.com> | Sun Sep 3 00:55:22 2017 +0530| [6ce4a635ed19db9003dae36f52d432f2b8988bb7] | committer: James Almer
avformat/fitsenc: fill header line with spaces
Signed-off-by: Paras Chadha <paraschadha18 at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ce4a635ed19db9003dae36f52d432f2b8988bb7
---
libavformat/fitsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c
index 0dcdcdfb04..7cb171596c 100644
--- a/libavformat/fitsenc.c
+++ b/libavformat/fitsenc.c
@@ -58,7 +58,7 @@ static int write_keyword_value(AVFormatContext *s, const char *keyword, int valu
header[9] = ' ';
ret = snprintf(header + 10, 70, "%d", value);
- header[ret + 10] = ' ';
+ memset(&header[ret + 10], ' ', sizeof(header) - (ret + 10));
avio_write(s->pb, header, sizeof(header));
*lines_written += 1;
More information about the ffmpeg-cvslog
mailing list