Mercurial > libavformat.hg
comparison vorbiscomment.c @ 6451:a8abcc0f32cf libavformat
cosmetics: spaces between and after parentheses
author | bcoudurier |
---|---|
date | Wed, 01 Sep 2010 22:58:39 +0000 |
parents | 121d6994c20e |
children |
comparison
equal
deleted
inserted
replaced
6450:341de8787590 | 6451:a8abcc0f32cf |
---|---|
41 int len = 8; | 41 int len = 8; |
42 len += strlen(vendor_string); | 42 len += strlen(vendor_string); |
43 *count = 0; | 43 *count = 0; |
44 if (m) { | 44 if (m) { |
45 AVMetadataTag *tag = NULL; | 45 AVMetadataTag *tag = NULL; |
46 while ( (tag = av_metadata_get(m, "", tag, AV_METADATA_IGNORE_SUFFIX) ) ) { | 46 while ((tag = av_metadata_get(m, "", tag, AV_METADATA_IGNORE_SUFFIX))) { |
47 len += 4 +strlen(tag->key) + 1 + strlen(tag->value); | 47 len += 4 +strlen(tag->key) + 1 + strlen(tag->value); |
48 (*count)++; | 48 (*count)++; |
49 } | 49 } |
50 } | 50 } |
51 return len; | 51 return len; |
57 bytestream_put_le32(p, strlen(vendor_string)); | 57 bytestream_put_le32(p, strlen(vendor_string)); |
58 bytestream_put_buffer(p, vendor_string, strlen(vendor_string)); | 58 bytestream_put_buffer(p, vendor_string, strlen(vendor_string)); |
59 if (m) { | 59 if (m) { |
60 AVMetadataTag *tag = NULL; | 60 AVMetadataTag *tag = NULL; |
61 bytestream_put_le32(p, count); | 61 bytestream_put_le32(p, count); |
62 while ( (tag = av_metadata_get(m, "", tag, AV_METADATA_IGNORE_SUFFIX) ) ) { | 62 while ((tag = av_metadata_get(m, "", tag, AV_METADATA_IGNORE_SUFFIX))) { |
63 unsigned int len1 = strlen(tag->key); | 63 unsigned int len1 = strlen(tag->key); |
64 unsigned int len2 = strlen(tag->value); | 64 unsigned int len2 = strlen(tag->value); |
65 bytestream_put_le32(p, len1+1+len2); | 65 bytestream_put_le32(p, len1+1+len2); |
66 bytestream_put_buffer(p, tag->key, len1); | 66 bytestream_put_buffer(p, tag->key, len1); |
67 bytestream_put_byte(p, '='); | 67 bytestream_put_byte(p, '='); |