summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2002-07-13 19:49:00 +0000
committerMike Melanson <mike@multimedia.cx>2002-07-13 19:49:00 +0000
commit30f860c5ddde33c2f003a1598dd6f16447ff78d9 (patch)
tree351054bbcfafa8eb2fdb8ff231ef39aa324c72e1 /src
parentb92da14c48b1648dbbf89e6ce3b54aa5ce371776 (diff)
downloadxine-lib-30f860c5ddde33c2f003a1598dd6f16447ff78d9.tar.gz
xine-lib-30f860c5ddde33c2f003a1598dd6f16447ff78d9.tar.bz2
fix classic C blunder
CVS patchset: 2259 CVS date: 2002/07/13 19:49:00
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_fli.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/demuxers/demux_fli.c b/src/demuxers/demux_fli.c
index fec2dca80..e0e65a14c 100644
--- a/src/demuxers/demux_fli.c
+++ b/src/demuxers/demux_fli.c
@@ -22,7 +22,7 @@
* avoid while programming a FLI decoder, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_fli.c,v 1.2 2002/07/11 03:57:23 tmmm Exp $
+ * $Id: demux_fli.c,v 1.3 2002/07/13 19:49:00 tmmm Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -106,7 +106,6 @@ static void *demux_fli_loop (void *this_gen) {
/* main demuxer loop */
while (this->status == DEMUX_OK) {
-//printf ("loading chunk #%d\n", i);
/* check if all the frames have been sent */
if (i >= this->frame_count) {
this->status = DEMUX_FINISHED;
@@ -126,9 +125,8 @@ static void *demux_fli_loop (void *this_gen) {
/* rewind over the size and packetize the chunk */
this->input->seek(this->input, -6, SEEK_CUR);
-//printf (" chunk magic = %X\n", chunk_magic);
- if ((chunk_magic = FLI_CHUNK_MAGIC_1) ||
- (chunk_magic = FLI_CHUNK_MAGIC_2)) {
+ if ((chunk_magic == FLI_CHUNK_MAGIC_1) ||
+ (chunk_magic == FLI_CHUNK_MAGIC_2)) {
while (chunk_size) {
buf = this->video_fifo->buffer_pool_alloc (this->video_fifo);
buf->content = buf->mem;
@@ -153,12 +151,11 @@ static void *demux_fli_loop (void *this_gen) {
if (!chunk_size)
buf->decoder_flags |= BUF_FLAG_FRAME_END;
-//printf ("check 6\n");
this->video_fifo->put(this->video_fifo, buf);
-//printf ("check 7\n");
}
pts_counter += this->frame_pts_inc;
- }
+ } else
+ this->input->seek(this->input, chunk_size, SEEK_CUR);
i++;