aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-01 01:29:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-01 01:29:12 +0000
commit9eb40bcf41ae31ebfd8f9376b117da36fa290087 (patch)
tree9baee607c91dab51d2c6a5821d47e401d2a6652d
parent11c19637d23c3456555aa29b99dca079261b5705 (diff)
downloadffmpeg-9eb40bcf41ae31ebfd8f9376b117da36fa290087.tar.gz
replace if by assert as it should never by true
Originally committed as revision 5080 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/avienc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 84de17c791..4d97ad79b8 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -517,8 +517,7 @@ static int avi_write_ix(AVFormatContext *s)
unsigned char ix_tag[] = "ix00";
int i, j;
- if (url_is_streamed(pb))
- return -1;
+ assert(!url_is_streamed(pb));
if (avi->riff_id > AVI_MASTER_INDEX_SIZE)
return -1;