From 9eb40bcf41ae31ebfd8f9376b117da36fa290087 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Wed, 1 Mar 2006 01:29:12 +0000
Subject: [PATCH] replace if by assert as it should never by true

Originally committed as revision 5080 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/avienc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 84de17c791d..4d97ad79b8e 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;
-- 
GitLab