Changeset ccb8128c8e6d6982f4b89636b599f2332e6b5fb6

Show
Ignore:
Timestamp:
07/02/08 21:57:30 (2 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1215028650 +0000
git-parent:

[1a2a411c38b705707cb68f958c0931050cb1d199]

git-author:
Laurent Aimar <fenrir@videolan.org> 1215017751 +0000
Message:

Fixed infinite loop in truncated file.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/asf/asf.c

    r01a24c0 rccb8128  
    655655        return -1; 
    656656    } 
    657     stream_Read( p_demux->s, NULL, i_data_packet_min ); 
     657    if( stream_Read( p_demux->s, NULL, i_data_packet_min ) != i_data_packet_min ) 
     658    { 
     659        msg_Warn( p_demux, "cannot skip data, EOF ?" ); 
     660        return 0; 
     661    } 
    658662 
    659663    return 1;