avformat/fitsenc: fill header line with spaces

Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Paras Chadha 2017-09-03 00:37:22 +05:30 committed by James Almer
parent 9669c05baf
commit 6ce4a635ed

View File

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