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");