[MPlayer-cvslog] r32185 - trunk/libmpdemux/muxer_lavf.c
reimar
subversion at mplayerhq.hu
Sun Sep 12 14:23:27 CEST 2010
Author: reimar
Date: Sun Sep 12 14:23:26 2010
New Revision: 32185
Log:
Fix a condition that would never be false (and thus cause
a crash if stream->bih is NULL).
Modified:
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c Sun Sep 12 14:22:01 2010 (r32184)
+++ trunk/libmpdemux/muxer_lavf.c Sun Sep 12 14:23:26 2010 (r32185)
@@ -229,7 +229,7 @@ static void fix_parameters(muxer_stream_
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);
More information about the MPlayer-cvslog
mailing list