~ubuntu-branches/ubuntu/lucid/schroedinger/lucid

« back to all changes in this revision

Viewing changes to testsuite/decode.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-04-14 10:58:46 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414105846-p35xtwwse4bf2xvw
Tags: 1.0.9.is.1.0.8-0ubuntu1
Upload 1.0.8 for lucid since the new version requires orc which is in 
universe and not ready to be promoted yet (the next version will change
the abi and it's still a new technology) (lp: #562735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#include <schroedinger/schro.h>
11
11
#include <schroedinger/schrodebug.h>
12
12
 
 
13
#include <liboil/liboilrandom.h>
13
14
 
14
15
#include "common.h"
15
16
 
60
61
  int go;
61
62
  int it;
62
63
  int eos = FALSE;
63
 
  int eof = FALSE;
64
64
  void *packet;
65
65
  int size;
66
66
  int ret;
74
74
      exit(1);
75
75
    }
76
76
 
77
 
    printf("packet size %d\n", size);
78
77
    if (size == 0) {
79
 
      eof = TRUE;
80
78
      schro_decoder_push_end_of_stream (decoder);
81
79
    } else {
82
80
      buffer = schro_buffer_new_with_data (packet, size);
115
113
          break;
116
114
        case SCHRO_DECODER_EOS:
117
115
          printf("got eos\n");
118
 
          if (eof) {
119
 
            eos = TRUE;
120
 
          }
 
116
          eos = TRUE;
121
117
          go = 0;
122
118
          break;
123
119
        case SCHRO_DECODER_ERROR: