git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4fb0ad
)
Use FFALIGN() in mmst.c where appropriate. Noticed by Benoit Fouet.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 11 Aug 2010 22:27:29 +0000
(22:27 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 11 Aug 2010 22:27:29 +0000
(22:27 +0000)
Originally committed as revision 24777 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mmst.c
patch
|
blob
|
history
diff --git
a/libavformat/mmst.c
b/libavformat/mmst.c
index
26975f5
..
32e98f7
100644
(file)
--- a/
libavformat/mmst.c
+++ b/
libavformat/mmst.c
@@
-155,7
+155,7
@@
static void insert_command_prefixes(MMSContext *mms,
static int send_command_packet(MMSContext *mms)
{
int len= mms->write_out_ptr - mms->out_buffer;
- int exact_length =
(len + 7) & ~7
;
+ int exact_length =
FFALIGN(len, 8)
;
int first_length= exact_length - 16;
int len8= first_length/8;
int write_result;