Mercurial > libavformat.hg
comparison psxstr.c @ 3520:2b1a7c3650c4 libavformat
Do not completely bail out for invalid params, just skip the current sector.
author | michael |
---|---|
date | Thu, 26 Jun 2008 23:00:00 +0000 |
parents | 55545ebc90eb |
children | b068f51d1c6e |
comparison
equal
deleted
inserted
replaced
3519:55545ebc90eb | 3520:2b1a7c3650c4 |
---|---|
149 | 149 |
150 if(!( frame_size>=0 | 150 if(!( frame_size>=0 |
151 && current_sector < sector_count | 151 && current_sector < sector_count |
152 && sector_count*VIDEO_DATA_CHUNK_SIZE >=frame_size)){ | 152 && sector_count*VIDEO_DATA_CHUNK_SIZE >=frame_size)){ |
153 av_log(s, AV_LOG_ERROR, "Invalid parameters %d %d %d\n", current_sector, sector_count, frame_size); | 153 av_log(s, AV_LOG_ERROR, "Invalid parameters %d %d %d\n", current_sector, sector_count, frame_size); |
154 return AVERROR_INVALIDDATA; | 154 break; |
155 } | 155 } |
156 | 156 |
157 if(str->channels[channel].video_stream_index < 0){ | 157 if(str->channels[channel].video_stream_index < 0){ |
158 /* allocate a new AVStream */ | 158 /* allocate a new AVStream */ |
159 st = av_new_stream(s, 0); | 159 st = av_new_stream(s, 0); |