changeset 976:c4a67d8fa68f libavformat

replace if by assert as it should never by true
author michael
date Wed, 01 Mar 2006 01:29:12 +0000
parents 36a69fbabcfb
children 8bb9cea3c2d3
files avienc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avienc.c	Tue Feb 28 11:28:09 2006 +0000
+++ b/avienc.c	Wed Mar 01 01:29:12 2006 +0000
@@ -517,8 +517,7 @@
     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;