[svn] / branches / release-1_1-branch / xvidcore / examples / xvid_decraw.c Repository:
ViewVC logotype

Diff of /branches/release-1_1-branch/xvidcore/examples/xvid_decraw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1627, Mon Aug 1 10:53:46 2005 UTC revision 1637, Tue Sep 20 11:19:34 2005 UTC
# Line 20  Line 20 
20   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: xvid_decraw.c,v 1.20 2005-08-01 10:53:46 Isibaar Exp $   * $Id: xvid_decraw.c,v 1.21 2005-09-20 11:19:34 suxen_drol Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 73  Line 73 
73    
74  static const int display_buffer_bytes = 0;  static const int display_buffer_bytes = 0;
75    
76    #define MIN_USEFUL_BYTES 1
77    
78  /*****************************************************************************  /*****************************************************************************
79   *               Local prototypes   *               Local prototypes
80   ****************************************************************************/   ****************************************************************************/
# Line 333  Line 335 
335                          if (display_buffer_bytes) {                          if (display_buffer_bytes) {
336                                  printf("Data chunk %d: %d bytes consumed, %d bytes in buffer\n", chunk++, used_bytes, useful_bytes);                                  printf("Data chunk %d: %d bytes consumed, %d bytes in buffer\n", chunk++, used_bytes, useful_bytes);
337                          }                          }
338                  } while (xvid_dec_stats.type <= 0 && useful_bytes > 0);                  } while (xvid_dec_stats.type <= 0 && useful_bytes > MIN_USEFUL_BYTES);
339    
340                  /* Check if there is a negative number of useful bytes left in buffer                  /* Check if there is a negative number of useful bytes left in buffer
341                   * This means we went too far */                   * This means we went too far */
# Line 378  Line 380 
380    
381                  filenr++;                  filenr++;
382    
383          } while (useful_bytes>0 || !feof(in_file));          } while (useful_bytes>MIN_USEFUL_BYTES || !feof(in_file));
384    
385          useful_bytes = 0; /* Empty buffer */          useful_bytes = 0; /* Empty buffer */
386    

Legend:
Removed from v.1627  
changed lines
  Added in v.1637

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4