mirror of https://git.ffmpeg.org/ffmpeg.git
soxenc: use FFALIGN
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
07abf13da4
commit
a4912aa61e
|
@ -51,7 +51,7 @@ static int sox_write_header(AVFormatContext *s)
|
||||||
comment = av_dict_get(s->metadata, "comment", NULL, 0);
|
comment = av_dict_get(s->metadata, "comment", NULL, 0);
|
||||||
if (comment)
|
if (comment)
|
||||||
comment_len = strlen(comment->value);
|
comment_len = strlen(comment->value);
|
||||||
comment_size = (comment_len + 7) & ~7;
|
comment_size = FFALIGN(comment_len, 8);
|
||||||
|
|
||||||
sox->header_size = SOX_FIXED_HDR + comment_size;
|
sox->header_size = SOX_FIXED_HDR + comment_size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue