Changeset 291

Show
Ignore:
Timestamp:
01/17/07 14:45:07 (2 years ago)
Author:
astrange
Message:

Avoid possible divide-by-zero crash.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ff_private.c

    r281 r291  
    631631                ncstr->sampleTable = calloc(stream->nb_index_entries, sizeof(SampleReference64Record)); 
    632632                 
     633                if (!ncstr->vbr && ncstr->asbd.mBytesPerPacket == 0) { 
     634                        Codecprintf(NULL, "mBytesPerPacket 0 in apparently CBR stream\n"); 
     635                        continue; 
     636                } 
     637                         
    633638                /* now parse the index entries */ 
    634639                for(k = 0; k < stream->nb_index_entries; k++) {