1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-04 01:30:05 +02:00

replace if by assert as it should never by true

Originally committed as revision 5080 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-03-01 01:29:12 +00:00
parent 11c19637d2
commit 9eb40bcf41

View File

@ -517,8 +517,7 @@ static int avi_write_ix(AVFormatContext *s)
unsigned char ix_tag[] = "ix00"; unsigned char ix_tag[] = "ix00";
int i, j; int i, j;
if (url_is_streamed(pb)) assert(!url_is_streamed(pb));
return -1;
if (avi->riff_id > AVI_MASTER_INDEX_SIZE) if (avi->riff_id > AVI_MASTER_INDEX_SIZE)
return -1; return -1;