projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9669c05
)
avformat/fitsenc: fill header line with spaces
author
Paras Chadha
<paraschadha18@gmail.com>
Sat, 2 Sep 2017 19:07:22 +0000
(
00:37
+0530)
committer
James Almer
<jamrial@gmail.com>
Wed, 13 Sep 2017 00:39:57 +0000
(21:39 -0300)
Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/fitsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/fitsenc.c
b/libavformat/fitsenc.c
index
0dcdcdf
..
7cb1715
100644
(file)
--- 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;