mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/fitsenc: Simplify writing header padding
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
9d767b8a98
commit
52af16bbf5
@ -24,6 +24,7 @@
|
|||||||
* FITS muxer.
|
* FITS muxer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "avio_internal.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
typedef struct FITSContext {
|
typedef struct FITSContext {
|
||||||
@ -177,11 +178,7 @@ static int write_image_header(AVFormatContext *s)
|
|||||||
lines_written++;
|
lines_written++;
|
||||||
|
|
||||||
lines_left = ((lines_written + 35) / 36) * 36 - lines_written;
|
lines_left = ((lines_written + 35) / 36) * 36 - lines_written;
|
||||||
memset(buffer, ' ', 80);
|
ffio_fill(s->pb, ' ', sizeof(buffer) * lines_left);
|
||||||
while (lines_left > 0) {
|
|
||||||
avio_write(s->pb, buffer, sizeof(buffer));
|
|
||||||
lines_left--;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user