[FFmpeg-cvslog] r14002 - trunk/libavformat/psxstr.c

michael subversion
Fri Jun 27 01:00:00 CEST 2008


Author: michael
Date: Fri Jun 27 01:00:00 2008
New Revision: 14002

Log:
Do not completely bail out for invalid params, just skip the current sector.


Modified:
   trunk/libavformat/psxstr.c

Modified: trunk/libavformat/psxstr.c
==============================================================================
--- trunk/libavformat/psxstr.c	(original)
+++ trunk/libavformat/psxstr.c	Fri Jun 27 01:00:00 2008
@@ -151,7 +151,7 @@ static int str_read_packet(AVFormatConte
                      && current_sector < sector_count
                      && sector_count*VIDEO_DATA_CHUNK_SIZE >=frame_size)){
                     av_log(s, AV_LOG_ERROR, "Invalid parameters %d %d %d\n", current_sector, sector_count, frame_size);
-                    return AVERROR_INVALIDDATA;
+                    break;
                 }
 
                 if(str->channels[channel].video_stream_index < 0){




More information about the ffmpeg-cvslog mailing list