android/ringlibsdl/project/jni/smpeg2-2.0.0/video/util.cpp
void correct_underflow( VidStream* vid_stream )
{
  int status;

  status = get_more_data(vid_stream);

  if (status  < 0) {
    if (!quietFlag) {
      fprintf (stderr, "\n");
      perror("Unexpected read error.");
    }
    exit(1);
  }
  else if ((status == 0) && (vid_stream->buf_length < 1)) {
    if (!quietFlag) {
      fprintf(stderr, "\nImproper or missing sequence end code.\n");
    }
#ifdef ANALYSIS
    PrintAllStats(vid_stream);
#endif

    vid_stream->film_has_ended=TRUE;
    return;
  }
#ifdef UTIL2
  vid_stream->curBits = *vid_stream->buffer << vid_stream->bit_offset;
#else
  vid_stream->curBits = *vid_stream->buffer;
#endif

}
/*
 *--------------------------------------------------------------
 *
 * correct_underflow --
 *
 *	Called when buffer does not have sufficient data to 
 *      satisfy request for bits.
 *      Calls get_more_data, an application specific routine
 *      required to fill the buffer with more data.
 *
 * Results:
 *      None really.
 *  
 * Side effects:
 *	buf_length and buffer fields may be changed.
 *
 *--------------------------------------------------------------
 */
correct_underflow
Called when buffer does not have sufficient data to
satisfy request for bits.
Calls get_more_data, an application specific routine
required to fill the buffer with more data.

None really.

Side effects:
buf_length and buffer fields may be changed.
correct_underflow Called when buffer does not have sufficient data to satisfy request for bits . Calls get_more_data an application specific routine required to fill the buffer with more data . None really . Side effects : buf_length and buffer fields may be changed .
void correct_underflow( VidStream* vid_stream )
{
  int status;
  status = get_more_data(vid_stream);
  if (status  < 0) {
    if (!quietFlag) {
      fprintf (stderr, "\n");
      perror("Unexpected read error.");
    }
    exit(1);
  }
  else if ((status == 0) && (vid_stream->buf_length < 1)) {
    if (!quietFlag) {
      fprintf(stderr, "\nImproper or missing sequence end code.\n");
    }
#ifdef ANALYSIS
    PrintAllStats(vid_stream);
#endif
    vid_stream->film_has_ended=TRUE;
    return;
  }
#ifdef UTIL2
  vid_stream->curBits = *vid_stream->buffer << vid_stream->bit_offset;
#else
  vid_stream->curBits = *vid_stream->buffer;
#endif
}
void correct_underflow ( VidStream * vid_stream ) { int status ; status = get_more_data ( vid_stream ) ; if ( status < 0 ) { if ( ! quietFlag ) { fprintf ( stderr , " \n " ) ; perror ( " " ) ; } exit ( 1 ) ; } else if ( ( status == 0 ) && ( vid_stream -> buf_length < 1 ) ) { if ( ! quietFlag ) { fprintf ( stderr , " \n \n " ) ; } #ifdef ANALYSIS PrintAllStats ( vid_stream ) ; #endif vid_stream -> film_has_ended = TRUE ; return ; } #ifdef UTIL2 vid_stream -> curBits = * vid_stream -> buffer << vid_stream -> bit_offset ; #else vid_stream -> curBits = * vid_stream -> buffer ; #endif }
correct_underflow
      Called when buffer does not have sufficient data to
      satisfy request for bits.
correct_underflow Called when buffer does not have sufficient data to satisfy request for bits .