diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-05-13 02:58:57 +0000 |
commit | 6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch) | |
tree | 0ed465592509105fdbeab27fc12ddbb2e3590aa5 /libmpdemux/demux_gif.c | |
parent | eafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff) | |
download | mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2 mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz |
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_gif.c')
-rw-r--r-- | libmpdemux/demux_gif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libmpdemux/demux_gif.c b/libmpdemux/demux_gif.c index 419055896d..a85963931a 100644 --- a/libmpdemux/demux_gif.c +++ b/libmpdemux/demux_gif.c @@ -51,7 +51,7 @@ int my_read_gif(GifFileType *gif, uint8_t *buf, int len) { return stream_read(gif->UserData, buf, len); } #endif - + static int gif_check_file(demuxer_t *demuxer) { if (stream_read_int24(demuxer->stream) == GIF_SIGNATURE) @@ -125,7 +125,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) // http://samples.mplayerhq.hu/GIF/broken-gif/CLAIRE.GIF if (refmode == 0) refmode = 1; frametime = (p[3] << 8) | p[2]; // set the time, centiseconds - transparent_col = p[4]; + transparent_col = p[4]; } priv->current_pts += frametime; } else if ((code == 0xFE) && (verbose)) { // comment extension @@ -151,7 +151,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) } } } - + if (DGifGetImageDesc(gif) == GIF_ERROR) { PrintGifError(); return 0; // oops @@ -164,7 +164,7 @@ static int demux_gif_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) fast_memcpy(dp->buffer, priv->refimg, priv->w * priv->h); else memset(dp->buffer, gif->SBackGroundColor, priv->w * priv->h); - + if (DGifGetLine(gif, buf, len) == GIF_ERROR) { PrintGifError(); return 0; // oops @@ -275,10 +275,10 @@ static demuxer_t* demux_open_gif(demuxer_t* demuxer) sh_video->ds = demuxer->video; sh_video->format = mmioFOURCC(8, 'R', 'G', 'B'); - + sh_video->fps = 5.0f; sh_video->frametime = 1.0f / sh_video->fps; - + sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4)); sh_video->bih->biCompression = sh_video->format; sh_video->bih->biWidth = priv->w = (uint16_t)gif->SWidth; @@ -287,7 +287,7 @@ static demuxer_t* demux_open_gif(demuxer_t* demuxer) sh_video->bih->biPlanes = 2; priv->palette = (unsigned char *)(sh_video->bih + 1); priv->refimg = malloc(priv->w * priv->h); - + priv->gif = gif; demuxer->priv = priv; |