[SCM] libav/experimental: replace if by assert as it should never by true
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:46:45 UTC 2013
The following commit has been merged in the experimental branch:
commit 9eb40bcf41ae31ebfd8f9376b117da36fa290087
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Mar 1 01:29:12 2006 +0000
replace if by assert as it should never by true
Originally committed as revision 5080 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 84de17c..4d97ad7 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list