# HG changeset patch # User reimar # Date 1284294206 0 # Node ID adae664c1961447ce8d3169149b9bd3a4a9d911c # Parent 0e09b34b0c47666b03a18a00bee5ec322528fb42 Fix a condition that would never be false (and thus cause a crash if stream->bih is NULL). diff -r 0e09b34b0c47 -r adae664c1961 libmpdemux/muxer_lavf.c --- 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);