From b688a2847062186b2465fa321c01cdf88468ca05 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 11 Dec 2012 08:56:42 +0100 Subject: [PATCH] astenc: fix assignment vs compare Fixes CID747736 Signed-off-by: Michael Niedermayer --- libavformat/astenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/astenc.c b/libavformat/astenc.c index 2c4afb7afb..6121a0153c 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -51,7 +51,7 @@ static int ast_write_header(AVFormatContext *s) AVCodecContext *enc; unsigned int codec_tag; - if (s->nb_streams = 1) { + if (s->nb_streams == 1) { enc = s->streams[0]->codec; } else { av_log(s, AV_LOG_ERROR, "only one stream is supported\n");