winport (aviout) - make output end with less bugs when the disk is full

This commit is contained in:
zeromus 2017-07-29 13:48:01 -05:00
parent 153b3ed61b
commit ef4b203064
1 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ void DRV_AviVideoUpdate()
avi_file->bitmap_format.biSizeImage, AVIIF_KEYFRAME, avi_file->bitmap_format.biSizeImage, AVIIF_KEYFRAME,
NULL, &avi_file->ByteBuffer))) NULL, &avi_file->ByteBuffer)))
{ {
avi_file->valid = 0; DRV_AviEnd();
return; return;
} }
@ -493,7 +493,7 @@ void DRV_AviSoundUpdate(void* soundData, int soundLen)
avi_file->sound_samples, samplesPerSegment, avi_file->sound_samples, samplesPerSegment,
avi_file->audio_buffer, audioSegmentSize, 0, NULL, &avi_file->ByteBuffer))) avi_file->audio_buffer, audioSegmentSize, 0, NULL, &avi_file->ByteBuffer)))
{ {
avi_file->valid = 0; DRV_AviEnd();
return; return;
} }
avi_file->sound_samples += samplesPerSegment; avi_file->sound_samples += samplesPerSegment;