summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsub.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2005-12-17 18:14:38 +0000
committerDiego Biurrun <diego@biurrun.de>2005-12-17 18:14:38 +0000
commit115329f16062074e11ccf3b89ead6176606c9696 (patch)
treee98aa993905a702688bf821737ab9a443969fc28 /libavcodec/dvbsub.c
parentd76319b1ab716320f6e6a4d690b85fe4504ebd5b (diff)
COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvbsub.c')
-rw-r--r--libavcodec/dvbsub.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/dvbsub.c b/libavcodec/dvbsub.c
index d85836b8b6..b2bcc89f37 100644
--- a/libavcodec/dvbsub.c
+++ b/libavcodec/dvbsub.c
@@ -44,12 +44,12 @@ static void dvb_encode_rle2(uint8_t **pq,
int x, y, len, x1, v, color;
q = *pq;
-
+
for(y = 0; y < h; y++) {
*q++ = 0x10;
bitbuf = 0;
bitcnt = 6;
-
+
x = 0;
while (x < w) {
x1 = x;
@@ -132,12 +132,12 @@ static void dvb_encode_rle4(uint8_t **pq,
int x, y, len, x1, v, color;
q = *pq;
-
+
for(y = 0; y < h; y++) {
*q++ = 0x11;
bitbuf = 0;
bitcnt = 4;
-
+
x = 0;
while (x < w) {
x1 = x;
@@ -215,7 +215,7 @@ static inline void putbe16(uint8_t **pq, uint16_t v)
*pq = q;
}
-static int encode_dvb_subtitles(DVBSubtitleContext *s,
+static int encode_dvb_subtitles(DVBSubtitleContext *s,
uint8_t *outbuf, AVSubtitle *h)
{
uint8_t *q, *pseg_len;
@@ -244,7 +244,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
else
page_state = 2; /* mode change */
/* page_version = 0 + page_state */
- *q++ = s->object_version | (page_state << 2) | 3;
+ *q++ = s->object_version | (page_state << 2) | 3;
for (region_id = 0; region_id < h->num_rects; region_id++) {
*q++ = region_id;
@@ -302,7 +302,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
for (region_id = 0; region_id < h->num_rects; region_id++) {
/* region composition segment */
-
+
if (h->rects[region_id].nb_colors <= 4) {
/* 2 bpp, some decoders do not support it correctly */
bpp_index = 0;
@@ -339,7 +339,7 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
}
if (!s->hide_state) {
-
+
for (object_id = 0; object_id < h->num_rects; object_id++) {
/* Object Data segment */