changeset 32101:adae664c1961

Fix a condition that would never be false (and thus cause a crash if stream->bih is NULL).
author reimar
date Sun, 12 Sep 2010 12:23:26 +0000
parents 0e09b34b0c47
children 52f920e9c540
files libmpdemux/muxer_lavf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c	Sun Sep 12 12:22:01 2010 +0000
+++ b/libmpdemux/muxer_lavf.c	Sun Sep 12 12:23:26 2010 +0000
@@ -229,7 +229,7 @@
 		ctx->bit_rate = 800000;
 		ctx->time_base.den = stream->h.dwRate;
 		ctx->time_base.num = stream->h.dwScale;
-		if(stream->bih+1 && (stream->bih->biSize > sizeof(*stream->bih)))
+		if(stream->bih && (stream->bih->biSize > sizeof(*stream->bih)))
 		{
 			ctx->extradata_size = stream->bih->biSize - sizeof(*stream->bih);
 			ctx->extradata = av_malloc(ctx->extradata_size);