summaryrefslogtreecommitdiff
path: root/libavformat/psxstr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-26 23:00:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-26 23:00:00 +0000
commit435a6082f9e368196e0d8347858c63de1126af2c (patch)
tree3f52b92c775f24026bbcc1b49d250b45eea5e813 /libavformat/psxstr.c
parentad9c10556c5ed9eb17d8412c1414048fdfe5fc44 (diff)
Do not completely bail out for invalid params, just skip the current sector.
Originally committed as revision 14002 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/psxstr.c')
-rw-r--r--libavformat/psxstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index 7f5fe797c0..5be7a959ff 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -151,7 +151,7 @@ static int str_read_packet(AVFormatContext *s,
&& 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){